* finish task #2723.

This commit is contained in:
Catouse
2016-11-17 14:36:28 +08:00
parent 37d97288a7
commit e9b329df4c
2 changed files with 18 additions and 15 deletions
+3 -3
View File
@@ -303,10 +303,10 @@ class commonModel extends model
echo "<a href='javascript:;' data-toggle='dropdown'>" . $lang->help . " <span class='caret'></span></a>";
echo "<ul class='dropdown-menu pull-right'>";
echo '<li>' . html::a('javascript:;', $lang->manual, '', "class='open-help-tab'") . '</li>';
if(!commonModel::isTutorialMode() and $app->user->account != 'guest') echo '<li>' . html::a(helper::createLink('tutorial', 'start'), $lang->tutorial, '', "class='iframe' data-width='800' data-headerless='true'") . "</li>";
echo '<li>' . html::a(helper::createLink('misc', 'changeLog'), $lang->changeLog, '', "class='iframe' data-width='800' data-headerless='true'") . '</li>';
if(!commonModel::isTutorialMode() and $app->user->account != 'guest') echo '<li>' . html::a(helper::createLink('tutorial', 'start'), $lang->tutorial, '', "class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'") . "</li>";
echo '<li>' . html::a(helper::createLink('misc', 'changeLog'), $lang->changeLog, '', "class='iframe' data-width='800' data-headerless='true' data-backdrop='true' data-keyboard='true'") . '</li>';
echo "</ul></div>";
echo html::a(helper::createLink('misc', 'about'), $lang->aboutZenTao, '', "class='about iframe' data-width='900' data-headerless='true' data-class='modal-about'");
echo html::a(helper::createLink('misc', 'about'), $lang->aboutZenTao, '', "class='about iframe' data-width='900' data-headerless='true' data-backdrop='true' data-keyboard='true' data-class='modal-about'");
}
/**
+15 -12
View File
@@ -989,18 +989,18 @@ function setModal()
var type = (setting ? setting.type : false) || ($e.hasClass('iframe') ? 'iframe' : ($e.data('type') || 'ajax'));
if(type == 'iframe')
{
var options =
var options = $.extend(
{
url: url,
width: $e.data('width') || 800,
height: $e.data('height') || 'auto',
icon: $e.data('icon') || '?',
title: $e.data('title') || $e.attr('title') || $e.text(),
name: $e.data('name') || 'modalIframe',
width: 800,
height: 'auto',
icon: '?',
title: $e.attr('title') || $e.text(),
name: 'modalIframe',
cssClass: $e.data('class'),
headerless: $e.data('headerless') || false,
center: $e.data('center') || true
};
headerless: false,
center: true
}, $e.data());
if(options.icon == '?')
{
@@ -1036,7 +1036,7 @@ function setModal()
ajustModalPosition();
}
ajaxModal.modal('show');
ajaxModal.modal($.extend({backdrop: 'static', keyboard: false, show: true}, options));
});
}
@@ -1061,7 +1061,10 @@ function setModal()
cssClass: '',
headerless: false,
waittime: 0,
center: true
center: true,
backdrop: 'static',
keyboard: false,
show: true
}
if(typeof(settings) == 'string')
@@ -1118,7 +1121,7 @@ function setModal()
}
showModal(options, modal, modalBody, dialog);
}
modal.modal('show');
modal.modal(options);
}
function showModal(options, modal, modalBody, dialog)