From 81bc8c784adbb5952441ecb337d224d4081c030e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 21 Jul 2015 16:55:14 +0200 Subject: [PATCH] Don't reopen notification on mouse-over while closing (cherry picked from commit 9839f4b) --- src/octoprint/static/js/app/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/main.js b/src/octoprint/static/js/app/main.js index 7eddbb2b..cb518e0b 100644 --- a/src/octoprint/static/js/app/main.js +++ b/src/octoprint/static/js/app/main.js @@ -51,6 +51,7 @@ $(function() { //~~ Initialize PNotify PNotify.prototype.options.styling = "bootstrap2"; + PNotify.prototype.options.mouse_reset = false; //~~ Initialize view models @@ -58,7 +59,7 @@ $(function() { var viewModelMap = {}; // Fix Function#name on browsers that do not support it (IE): - // see: http://stackoverflow.com/questions/6903762/function-name-not-supported-in-ie + // see: http://stackoverflow.com/questions/6903762/function-name-not-supported-in-ie if (!(function f() {}).name) { Object.defineProperty(Function.prototype, 'name', { get: function() {