fix(MessageHandler): hide the close button when 'persistent'

This commit is contained in:
paweldomas 2016-11-28 10:57:27 -06:00
parent 6669a96fd8
commit 0238a10a4b
1 changed files with 9 additions and 1 deletions

View File

@ -290,7 +290,15 @@ var messageHandler = {
buttons: buttons,
defaultButton: 1,
promptspeed: 0,
loaded: loadedFunction,
loaded: function() {
if (loadedFunction) {
loadedFunction.apply(this, arguments);
}
// Hide the close button
if (persistent) {
$(".jqiclose", this).hide();
}
},
submit: dontShowAgainSubmitFunctionWrapper(
dontShowAgain, submitFunction),
close: closeFunction,