Only try to rewrite PNotify confirm buttons if buttons are actually configured
This commit is contained in:
parent
6ab44849cd
commit
97e8326768
1 changed files with 4 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ $(function() {
|
|||
PNotify.prototype.options.mouse_reset = false;
|
||||
|
||||
PNotify.singleButtonNotify = function(options) {
|
||||
if (!options.confirm || !options.confirm.buttons || !options.confirm.buttons.length) {
|
||||
return new PNotify(options);
|
||||
}
|
||||
|
||||
var autoDisplay = options.auto_display != false;
|
||||
|
||||
var params = $.extend(true, {}, options);
|
||||
|
|
|
|||
Loading…
Reference in a new issue