Only try to rewrite PNotify confirm buttons if buttons are actually configured
This commit is contained in:
1 parent
6ab44849cd
commit
97e8326768
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user