* Iframe and disable will be invalid.

This commit is contained in:
zhouxudong
2022-06-30 08:35:22 +00:00
parent c216e570a9
commit 502e3db733
2 changed files with 7 additions and 2 deletions
+5 -2
View File
@@ -284,8 +284,11 @@ function executeQuery(queryID)
$(function() $(function()
{ {
if(!canSaveQuery) $('.btn-save-form').attr('disabled', 'disabled'); if(!canSaveQuery)
{
$('.btn-save-form').attr('disabled', 'disabled');
$('.btn-save-form').css('pointer-events', 'none');
}
var $searchForm = $('#<?php echo $formId;?>'); var $searchForm = $('#<?php echo $formId;?>');
$searchForm.find('select.chosen').chosen().on('chosen:showing_dropdown', function() $searchForm.find('select.chosen').chosen().on('chosen:showing_dropdown', function()
{ {
+2
View File
@@ -136,12 +136,14 @@ function setPreview(num)
storyLink = storyLink + concat + 'onlybody=yes'; storyLink = storyLink + concat + 'onlybody=yes';
} }
$('#preview' + num).removeAttr('disabled'); $('#preview' + num).removeAttr('disabled');
$('#preview' + num).modalTrigger({type:'iframe'});
$('#preview' + num).attr('href', storyLink); $('#preview' + num).attr('href', storyLink);
} }
else else
{ {
storyLink = '#'; storyLink = '#';
$('#preview' + num).attr('disabled', true); $('#preview' + num).attr('disabled', true);
$('#preview' + num).css('pointer-events', 'none');
$('#preview' + num).attr('href', storyLink); $('#preview' + num).attr('href', storyLink);
} }
} }