From 2f786b81b31c3f941124c1d555326b8e0a4229f8 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Sun, 14 Jul 2013 15:29:40 -0600 Subject: [PATCH] use improved treeview replacement patch (RHBZ #888207) --- ...8a-replace_treeview_by_jquery.jstree.patch | 260 +++++++++++++----- cacti.spec | 4 +- 2 files changed, 186 insertions(+), 78 deletions(-) rename Third-try-on-jstree-inclusion.patch => cacti-0.8.8a-replace_treeview_by_jquery.jstree.patch (78%) diff --git a/Third-try-on-jstree-inclusion.patch b/cacti-0.8.8a-replace_treeview_by_jquery.jstree.patch similarity index 78% rename from Third-try-on-jstree-inclusion.patch rename to cacti-0.8.8a-replace_treeview_by_jquery.jstree.patch index e8cc10c..b0b54fe 100644 --- a/Third-try-on-jstree-inclusion.patch +++ b/cacti-0.8.8a-replace_treeview_by_jquery.jstree.patch @@ -1,21 +1,32 @@ -From c3380db41fbdf1ae28f1002f957c958e8f7f586e Mon Sep 17 00:00:00 2001 -From: Paul Gevers -Date: Wed, 21 Nov 2012 23:19:40 +0100 -Subject: [PATCH] Third try on jstree inclusion (everything I tested works - now) +Description: treeview has a license issue, cacti upstream is going to replace it + with functionality from jquery.jstree. + . + This patch implements the changes needed for an upstream layout where the + necessary code is in cacti/include/js/jquery/ but the code in that path is + not included in this patch. + . + The necessary jquery scripts and theme info can come from cacti upstream and from + debian packages (libjs-jquery and libjs-jquery-cookie) The version used when + creating this patch can be found here: + http://svn.cacti.net/viewvc/cacti/branches/0.8.9/include/js/jquery/jquery.js?pathrev=7324 + http://svn.cacti.net/viewvc/cacti/branches/0.8.9/include/js/jquery/jquery.jstree.js?pathrev=7324 + http://svn.cacti.net/viewvc/cacti/branches/main/include/js/jquery/themes/default/?pathrev=7324 + http://anonscm.debian.org/gitweb/?p=pkg-javascript/jquery-goodies.git;a=blob;f=cookie/jquery.cookie.js;hb=c50e1a2d599cb48893e8d77470e71e83e44dfdb5 + . + This patch does NOT implement the changes needed for the Debian package of + cacti. + . + This patch was updated with the patch from Jan Zalesak in + http://bugs.debian.org/702690 which was further improved to also cover + lib/graph_export.php and to keep tag alignment consistent. +Bug: http://bugs.cacti.net/view.php?id=2228 +Bug-Debian: http://bugs.debian.org/679980 +Author: Paul Gevers +Date: Sun, 31 Mar 2013 11:59:05 +0200 -Not including the theme and style sheet. ---- - include/top_graph_header.php | 6 +- - lib/graph_export.php | 149 +++++++++++++++++++++++++----------------- - lib/html_tree.php | 101 +++++++++++++++++----------- - 3 files changed, 153 insertions(+), 103 deletions(-) - -diff --git a/include/top_graph_header.php b/include/top_graph_header.php -index 86bba4b..97766f4 100644 --- a/include/top_graph_header.php +++ b/include/top_graph_header.php -@@ -84,8 +84,9 @@ $page_title = api_plugin_hook_function('page_title', draw_navigation_text("title +@@ -84,8 +84,9 @@ @@ -27,7 +38,7 @@ index 86bba4b..97766f4 100644 -@@ -178,7 +179,6 @@ $page_title = api_plugin_hook_function('page_title', draw_navigation_text("title +@@ -178,7 +179,6 @@
@@ -35,11 +46,9 @@ index 86bba4b..97766f4 100644 \n"); -+ fwrite($fp, "\t\n\n"); ++ fwrite($fp, "\n"); + fwrite($fp, "