Title: [opsview-base] [207] Cope with a double-digit MSIE version in Nagvis.
- Revision
- 207
- Author
- pknight
- Date
- 2013-01-28 15:57:33 +0000 (Mon, 28 Jan 2013)
Log Message
Cope with a double-digit MSIE version in Nagvis.
Modified Paths
Added Paths
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2013-01-22 23:30:00 UTC (rev 206)
+++ trunk/Makefile 2013-01-28 15:57:33 UTC (rev 207)
@@ -855,6 +855,7 @@
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_firefox_6.patch
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_remove_deprecated_display_errors.patch
cd ${NAGVIS} && patch -p1 < ../patches/nagvis_config_url_target.patch
+ cd ${NAGVIS} && patch -p1 < ../patches/nagvis_msie10.patch
# TODO update patches that work but with some fuzz
find ${NAGVIS} -name "*.orig" -exec rm {} \;
cp patches/nagvis/opsview.cfg ${NAGVIS}/etc/maps/
Added: trunk/patches/nagvis_msie10.patch
===================================================================
--- trunk/patches/nagvis_msie10.patch (rev 0)
+++ trunk/patches/nagvis_msie10.patch 2013-01-28 15:57:33 UTC (rev 207)
@@ -0,0 +1,12 @@
+diff -Bbur nagvis-1.4.4.orig/nagvis/includes/js/overlib.js nagvis-1.4.4/nagvis/includes/js/overlib.js
+--- nagvis-1.4.4.orig/nagvis/includes/js/overlib.js 2013-01-28 15:55:17.000000000 +0000
++++ nagvis-1.4.4/nagvis/includes/js/overlib.js 2013-01-28 15:55:40.000000000 +0000
+@@ -213,7 +213,7 @@
+ if (olIe4) {
+ var agent = navigator.userAgent;
+ if (/MSIE/.test(agent)) {
+- var versNum = parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);
++ var versNum = parseFloat(agent.match(/MSIE[ ](\d+\.\d+)\.*/i)[1]);
+ if (versNum >= 5){
+ olIe5=true;
+ olIe55=(versNum>=5.5&&!olOp) ? true : false;
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins