[Optimoz] patch of paste and go to compatible with fx 2.0a

Holio gaghiel at gmail.com
Mon May 15 22:50:38 EDT 2006


Sorry for posting this on the mailing list of optimoz, but I can't
find the way to connect with the author. And here is the patch for
paste and go compatible with fx 2.0 (alpha) :
----------begin----------
diff -ruN old/pasteandgo.js new/pasteandgo.js
--- old/pasteandgo.js   2005-09-24 00:50:28.000000000 +0800
+++ new/pasteandgo.js   2006-05-15 20:10:56.794625000 +0800
@@ -102,6 +102,8 @@
   // As of 1.0 the id is "searchbox" and the textbox is a field
called "mTextbox".
   if (document.getElementById("searchbar")) {
     pgSearchbar = document.getElementById("searchbar").mTextbox;
+    if (pgSearchbar == null) // seems 2.0a1 use searchbar._textbox
insteads of searchbar.mTextbox
+        pgSearchbar = document.getElementById("searchbar")._textbox;
   } else if (pgSearchbar = document.getElementById("search-bar")) {
     pgSearchbar = document.getElementById("search-bar");
   }
-----------end-----------
just a little modify, but works on my branch 20060512 builds.


More information about the Optimoz mailing list