[Pkg-nagios-changes] [icinga] 02/03: Classic UI: fixed menu disappear with jQuery 1.11+

Markus Frosch lazyfrosch at moszumanska.debian.org
Mon Jul 25 11:49:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

lazyfrosch pushed a commit to branch master
in repository icinga.

commit 6182dcb322246aee043f93ebe536e9f3bf50539d
Author: Nishanth Aravamudan <nish.aravamudan at canonical.com>
Date:   Mon Jul 25 13:44:05 2016 +0200

    Classic UI: fixed menu disappear with jQuery 1.11+
    
    Closes: #831332
---
 debian/patches/00list                  |  1 +
 debian/patches/96_jquery_compat.dpatch | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/00list b/debian/patches/00list
index 2d4d220..7177a7c 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -3,3 +3,4 @@
 52_icinga.cfg-debianize.dpatch
 70_fix_eventhandler_paths.dpatch
 95_fix_db_upgrade.dpatch
+96_jquery_compat.dpatch
diff --git a/debian/patches/96_jquery_compat.dpatch b/debian/patches/96_jquery_compat.dpatch
new file mode 100755
index 0000000..7ba1ced
--- /dev/null
+++ b/debian/patches/96_jquery_compat.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 96-jquery_compat.dpatch by Markus Frosch <lazyfrosch at debian.org>
+##
+## DP: Bug#831332 icinga-cgi-bin: fix menu hiding (jquery 1.11 incompatibility)
+## DP:
+## DP: icinga-cgi-bin in Debian Sid, Ubuntu Yakkety (and Ubuntu Xenial) is
+## DP: affected by an upstream bug where the left-hand menu in the Classic
+## DP: icinga web interface disappears immediately after the page finishes
+## DP: loading. Upstream has provided a fix and in my testing this resolves the
+## DP: issue (which is due to current code incompatibilty with jQuery versions
+## DP: in Debian and Ubuntu).
+
+ at DPATCH@
+--- icinga-1.13.3.orig/html/js/menu.js
++++ icinga-1.13.3/html/js/menu.js
+@@ -9,11 +9,14 @@
+ 
+ 		elem.prepend( img )
+ 			.css( "cursor", "pointer" )
+-			.toggle( function() {
+-				img.attr('src', 'images/menu_more.gif');
+-				list.slideToggle("slow");
+-			}, function() {
+-				img.attr('src', 'images/menu_less.gif');
++			.click( function() {
++				if($(this).hasClass("collapsed")) {
++					img.attr('src', 'images/menu_less.gif');
++					$(this).removeClass("collapsed");
++				} else {
++					img.attr('src', 'images/menu_more.gif');
++					$(this).addClass("collapsed");
++				}
+ 				list.slideToggle("slow");
+ 		});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/icinga.git



More information about the Pkg-nagios-changes mailing list