Only try to rewrite PNotify confirm buttons if buttons are actually configured

This commit is contained in:
Gina Häußge 2015-10-01 14:16:24 +02:00
parent 6ab44849cd
commit 97e8326768

View file

@ -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);