* wrap js code as jquery ready callback.

This commit is contained in:
Catouse
2016-05-04 09:59:54 +08:00
parent 0a749292bc
commit afdb3886f2
+6 -3
View File
@@ -421,7 +421,10 @@ foreach($fieldParams as $fieldName => $param)
<?php echo html::hidden('formType', 'lite');?>
</div>
</form>
<script language='Javascript'>
$(".saveQuery").modalTrigger({width:650, type:'iframe', title:'<?php echo $lang->search->setQueryTitle?>'});
<?php if(isset($formSession['formType'])) echo "show{$formSession['formType']}('#{$module}-search')";?>
<script>
$(function()
{
$(".saveQuery").modalTrigger({width:650, type:'iframe', title:'<?php echo $lang->search->setQueryTitle?>'});
<?php if(isset($formSession['formType'])) echo "show{$formSession['formType']}('#{$module}-search')";?>
});
</script>