cvs: phpweb / userprefs.js

From: Date: Sun, 05 Mar 2006 06:59:54 +0000
Subject: cvs: phpweb / userprefs.js
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-30809@lists.php.net to get a copy of this message
rasmus Sun Mar 5 06:59:54 2006 UTC Modified files: /phpweb userprefs.js Log: Need to turn the +'s back into spaces here and decode the value so people see the original search string they put in http://cvs.php.net/viewcvs.cgi/phpweb/userprefs.js?r1=1.13&r2=1.14&diff_format=u Index: phpweb/userprefs.js diff -u phpweb/userprefs.js:1.13 phpweb/userprefs.js:1.14 --- phpweb/userprefs.js:1.13 Mon Jan 10 12:57:26 2005 +++ phpweb/userprefs.js Sun Mar 5 06:59:54 2006 @@ -62,9 +62,9 @@ // Get pattern and show information from cookie option = lastSearch.substr(0, lastSearch.indexOf(",")); pattern = lastSearch.substr(lastSearch.indexOf(",") + 1); - + // Set pattern in form - document.forms["topsearch"].pattern.value = pattern; + document.forms["topsearch"].pattern.value = unescape(pattern.replace(/\+/g," ")); // Set the last selected search method in the dropdown for (var i = 0; i < document.forms["topsearch"].show.length; i++) {

« previous php.mirrors (#30809) next »