Commits

tehshin  committed 3e0bebd

added option to keep window open after last message has been removed

  • Participants
  • Parent commits 93fdb19

Comments (0)

Files changed (1)

File src/jquery.notifyme.js

         errorClass: 'error',
         warningClass: 'warning',
         infoClass: 'info',
-        windowTitle: 'Notifications'
+        windowTitle: 'Notifications',
+        preserve: false
     };
     
     var methods = {
             .click(function () {
                 $(this).parent().fadeToggle('fast', function () {
                     $(this).remove(); 
-                    if(!hasMessages()) {
+                    if(!hasMessages() && !config.preserve) {
                         closeNotificationWindow();
                     }
                 });