* Iframe and disable will be invalid.
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user