[omd-commits] OMD Git: omd: pnp4nagios: host search fixed

git version control git at mathias-kettner.de
Tue Sep 4 10:03:47 CEST 2012


Module:   omd
Branch:   master
Commit:   12be15e9ef4f4e5c52e643c72d1ebbca8d7f8a92
URL:      http://omdistro.org/projects/omd/repository/revisions/12be15e9ef4f4e5c52e643c72d1ebbca8d7f8a92

Author:   Joerg Linge <pitchfork at pnp4nagios.org>
Date:     Tue Sep  4 10:03:24 2012 +0200
Commiter: Joerg Linge <pitchfork at pnp4nagios.org>
Date:     Tue Sep  4 10:03:24 2012 +0200

pnp4nagios: host search fixed

---

 packages/pnp4nagios/Makefile                       |    8 ++++----
 .../patches/0001-fix-seach-javascript.diff         |   14 ++++++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/packages/pnp4nagios/Makefile b/packages/pnp4nagios/Makefile
index 39b4f2b..c5999a7 100644
--- a/packages/pnp4nagios/Makefile
+++ b/packages/pnp4nagios/Makefile
@@ -29,10 +29,10 @@ CONFIGUREOPTS = \
 
 build:
 	tar xzf $(DIR).tar.gz
-#	for p in patches/*.dif ; do \
-#		echo "applying $$p..." ; \
-#		( cd $(DIR) ; patch -p1 -b ) < $$p ; \
-#       done
+	for p in patches/*.diff ; do \
+		echo "applying $$p..." ; \
+		( cd $(DIR) ; patch -p1 -b ) < $$p ; \
+        done
 
 	cd $(DIR) ; ./configure $(CONFIGUREOPTS)
 	$(MAKE) -C $(DIR) all
diff --git a/packages/pnp4nagios/patches/0001-fix-seach-javascript.diff b/packages/pnp4nagios/patches/0001-fix-seach-javascript.diff
new file mode 100644
index 0000000..6d47c11
--- /dev/null
+++ b/packages/pnp4nagios/patches/0001-fix-seach-javascript.diff
@@ -0,0 +1,14 @@
+diff --git a/share/pnp/application/views/search_box.php b/share/pnp/application/views/search_box.php
+index c3d5521..b15c212 100644
+--- a/share/pnp/application/views/search_box.php
++++ b/share/pnp/application/views/search_box.php
+@@ -4,7 +4,7 @@
+ jQuery(function() {
+     jQuery("#query").autocomplete({
+         source: "<?php echo url::base('true')?>/index.php/ajax/search",
+-        select: function(event, ui) { window.location = <?php echo url::base('true')?> + "graph?host=" + ui.item.value  }
++        select: function(event, ui) { window.location = "<?php echo url::base('true')?>" + "graph?host=" + ui.item.value  }
+     });
+ });
+ </script>
+



More information about the omd-commits mailing list