[Jifty-commit] r1160 - in jifty/trunk: share/web/static/js
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jun 5 11:55:36 EDT 2006
Author: trs
Date: Mon Jun 5 11:55:35 2006
New Revision: 1160
Modified:
jifty/trunk/ (props changed)
jifty/trunk/share/web/static/js/bps_util.js
jifty/trunk/share/web/static/js/context_menu.js
Log:
r12668 at zot: tom | 2006-06-05 11:54:38 -0400
* Make the variable name more appropriate and s/'/"/g for best compat
* Use JS to get rid of that pesky plus sign (+) from links
Modified: jifty/trunk/share/web/static/js/bps_util.js
==============================================================================
--- jifty/trunk/share/web/static/js/bps_util.js (original)
+++ jifty/trunk/share/web/static/js/bps_util.js Mon Jun 5 11:55:35 2006
@@ -20,15 +20,15 @@
function createCalendarLink(input) {
var e = $(input);
if (e) {
- var link = document.createElement('a');
- link.setAttribute('href', "javascript:openCalWindow('"+e.id+"')");
+ var link = document.createElement("a");
+ link.setAttribute("href", "javascript:openCalWindow('"+e.id+"')");
- var text = document.createElement('img');
- text.setAttribute('src', '/static/images/silk/calendar.png');
- text.setAttribute('border', 0);
- link.appendChild(text);
+ var img = document.createElement("img");
+ img.setAttribute("src", "/static/images/silk/calendar.png");
+ img.setAttribute("border", 0);
+ link.appendChild(img);
- var space = document.createTextNode(' ');
+ var space = document.createTextNode(" ");
e.parentNode.insertBefore(link, e.nextSibling);
e.parentNode.insertBefore(space, e.nextSibling);
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 Mon Jun 5 11:55:35 2006
@@ -3,6 +3,11 @@
if (typeof Jifty == "undefined") Jifty = { };
Jifty.ContextMenu = {
+ behaviourRules: {
+ ".menu li.toplevel span.expand a": function(e) { e.innerHTML = ""; },
+ ".context_menu li.toplevel span.expand a": function(e) { e.innerHTML = ""; }
+ },
+
currently_open: "",
prevent_stutter: "",
@@ -83,4 +88,5 @@
};
DOM.Events.addListener( window, "click", Jifty.ContextMenu.hideOpenMenu );
+Behaviour.register( Jifty.ContextMenu.behaviourRules );
More information about the Jifty-commit
mailing list