Author: michiel
Date: 2010-04-06 18:32:44 +0200 (Tue, 06 Apr 2010)
New Revision: 41780

Modified:
   
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
Log:
the a.mm_gui onclick evenst are rather annoyting in search-results. Could 
easily switch them off yourself. But I think it is always wanted, so promoted 
it to here.

Modified: 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
===================================================================
--- 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
    2010-04-06 16:24:18 UTC (rev 41779)
+++ 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
    2010-04-06 16:32:44 UTC (rev 41780)
@@ -53,9 +53,16 @@
                             $(anchor).text('<fmt:message key="search" />');
                         }
                     }
+                    // The onlick of mm_gui's are rather annoying
+                    // TODO, should this be configuable?
+                     $(relater.div).find("a.mm_gui").removeAttr("onclick");
+                     $(relater.div).find("a.mm_gui").click(
+                        function(ev) {
+                            ev.preventDefault();
+                        });
+                 }
+               );
 
-                });
-
        $("input.search").
            live("keyup",
                 function(e) {

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to