[Jifty-commit] r1533 - in jifty/trunk: share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jul 11 21:20:32 EDT 2006
Author: trs
Date: Tue Jul 11 21:20:31 2006
New Revision: 1533
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/context_menu.js
Log:
r14167 at zot: tom | 2006-07-11 21:14:36 -0400
Hide focus border
Modified: jifty/trunk/share/web/static/js/context_menu.js
==============================================================================
--- jifty/trunk/share/web/static/js/context_menu.js (original)
+++ jifty/trunk/share/web/static/js/context_menu.js Tue Jul 11 21:20:31 2006
@@ -2,10 +2,16 @@
if (typeof Jifty == "undefined") Jifty = { };
+function prepExpandButton(e) {
+ e.innerHTML = "";
+ e.onmousedown = function() { e.onfocus = e.blur };
+ e.onmouseup = function() { e.onfocus = window.clientInformation ? null : window.undefined };
+}
+
Jifty.ContextMenu = {
behaviourRules: {
- "ul.menu li.toplevel span.expand a": function(e) { e.innerHTML = ""; },
- "ul.context_menu li.toplevel span.expand a": function(e) { e.innerHTML = ""; }
+ "ul.menu li.toplevel span.expand a": prepExpandButton,
+ "ul.context_menu li.toplevel span.expand a": prepExpandButton
},
currently_open: "",
More information about the Jifty-commit
mailing list