[Erp5-report] r11654 - /erp5/trunk/utils/searchplugin/searchplugin.html
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 8 13:08:44 CET 2006
Author: luke
Date: Fri Dec 8 13:08:43 2006
New Revision: 11654
URL: http://svn.erp5.org?rev=11654&view=rev
Log:
- example of automagic installer of searchplugin
Added:
erp5/trunk/utils/searchplugin/searchplugin.html
Added: erp5/trunk/utils/searchplugin/searchplugin.html
URL: http://svn.erp5.org/erp5/trunk/utils/searchplugin/searchplugin.html?rev=11654&view=auto
==============================================================================
--- erp5/trunk/utils/searchplugin/searchplugin.html (added)
+++ erp5/trunk/utils/searchplugin/searchplugin.html Fri Dec 8 13:08:43 2006
@@ -1,0 +1,28 @@
+<!-- This is example of automagic installer of search plugin - to be put somewhere on ERP5 wiki //-->
+<script type="text/javascript">
+<!--
+function errorMsg()
+{
+ alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
+}
+function addEngine(name,ext,cat,type)
+{
+ if ((typeof window.sidebar == "object") && (typeof
+ window.sidebar.addSearchEngine == "function"))
+ {
+ //cat="Web";
+ //cat=prompt('In what category should this engine be installed?','Web')
+ window.sidebar.addSearchEngine(
+ "http://svn.erp5.org/*checkout*/erp5/trunk/utils/searchplugin/"+name+".src",
+ "http://svn.erp5.org/*checkout*/erp5/trunk/utils/searchplugin/"+name+"."+ext,
+ name,
+ cat );
+ }
+ else
+ {
+ errorMsg();
+ }
+}
+//-->
+</script>
+<a href="javascript:addEngine('erp5wiki','png','Web',0)">ERP5Wiki Search Plugin</a>
More information about the Erp5-report
mailing list