* change features modal type to "iframe".

This commit is contained in:
Hao Sun
2021-09-13 14:12:28 +08:00
parent 21ca95f7be
commit ebda4e7a4e
2 changed files with 5 additions and 18 deletions
-6
View File
@@ -852,9 +852,3 @@ function getLatestVersion()
$('#globalSearchInput').click();
$('#upgradeContent').toggle();
}
/** Show features dialog */
function showFeaturesDialog()
{
new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'ajax', width: 900, showHeader: false, backdrop: 'static'}).show();
}
+5 -12
View File
@@ -1,6 +1,10 @@
$(function()
{
if(showFeatures) showFeaturesDialog();
if(showFeatures)
{
/** Show features dialog */
new $.zui.ModalTrigger({url: $.createLink('misc', 'features'), type: 'iframe', width: 900, showHeader: false, backdrop: 'static'}).show();
}
/* Set the heights of every block to keep them same height. */
projectBoxHeight = $('#projectbox').height();
@@ -37,14 +41,3 @@ $(function()
$(this).find('.fixedHead').css('top',$(this).scrollTop());
});
});
/**
* Show features dialog.
*
* @access public
* @return void
*/
function showFeaturesDialog()
{
$.zui.modalTrigger.show({url: $.createLink('misc', 'features'), type: 'ajax', width: 900, showHeader: false})
}