jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r690557 - /incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js
Date Sat, 30 Aug 2008 19:25:10 GMT
Author: jalkanen
Date: Sat Aug 30 12:25:10 2008
New Revision: 690557

URL: http://svn.apache.org/viewvc?rev=690557&view=rev
Log:
Plugins and variables are no longer matched when you type [ in the editor.

Modified:
    incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js

Modified: incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js?rev=690557&r1=690556&r2=690557&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js (original)
+++ incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js Sat Aug 30 12:25:10 2008
@@ -405,6 +405,7 @@
 			if( val.charAt(i) == ']' ) break;
 			if( val.charAt(i) == '[' && i < val.length-1 ) { 
 				searchword = val.substring(i+1,sel.start); 
+                if( searchword.charAt(0) == '{' ) return; // Ignore plugins.
 				if(searchword.indexOf('|') != -1) searchword = searchword.split('|')[1];
 				searchlen = searchword.length;
 



Mime
View raw message