|
From: <vl...@us...> - 2012-08-01 20:28:03
|
Revision: 923
http://openautomation.svn.sourceforge.net/openautomation/?rev=923&view=rev
Author: vlamers
Date: 2012-08-01 20:27:57 +0000 (Wed, 01 Aug 2012)
Log Message:
-----------
changed var text to fit IE9 too
Modified Paths:
--------------
CometVisu/trunk/visu/lib/templateengine.js
Modified: CometVisu/trunk/visu/lib/templateengine.js
===================================================================
--- CometVisu/trunk/visu/lib/templateengine.js 2012-07-27 07:40:24 UTC (rev 922)
+++ CometVisu/trunk/visu/lib/templateengine.js 2012-08-01 20:27:57 UTC (rev 923)
@@ -313,7 +313,7 @@
var editMode = 'edit_config.html' == sPage;
if( editMode && '!edit' == condition ) return;
if( !editMode && 'edit' == condition ) return;
- var text = this.textContent;
+ var text = $(this).text();
switch( extend )
{
case 'all': // append all parameters
@@ -323,6 +323,11 @@
case 'config': // append config file info
var search = window.location.search.replace( /\$/g, '$$$$' );
search = search.replace( /.*(config=[^&]*).*|.*/, '?$1' );
+
+
+// text = $(text).replaceWith( /(href="[^"]*)(")/g, '$1' + search + '$2' );
+
+
text = text.replace( /(href="[^"]*)(")/g, '$1' + search + '$2' );
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|