[Rt-commit] r13792 - in rt/3.8/trunk: share/html/NoAuth/js
trs at bestpractical.com
trs at bestpractical.com
Thu Jul 3 17:14:56 EDT 2008
Author: trs
Date: Thu Jul 3 17:14:54 2008
New Revision: 13792
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/NoAuth/js/util.js
Log:
r36835 at zot: tom | 2008-07-03 17:13:32 -0400
IE6 seems to fail with our old onclick handler. Use prototype's event observation instead and make it work.
Modified: rt/3.8/trunk/share/html/NoAuth/js/util.js
==============================================================================
--- rt/3.8/trunk/share/html/NoAuth/js/util.js (original)
+++ rt/3.8/trunk/share/html/NoAuth/js/util.js Thu Jul 3 17:14:54 2008
@@ -194,7 +194,8 @@
if (e) {
var link = document.createElement('a');
link.setAttribute('href', '#');
- link.setAttribute('onclick', "openCalWindow('"+input+"'); return false;");
+ $(link).observe('click', function(ev) { openCalWindow(input); ev.stop(); });
+ //link.setAttribute('onclick', "openCalWindow('"+input+"'); return false;");
var text = document.createTextNode('<% loc("Calendar") %>');
link.appendChild(text);
More information about the Rt-commit
mailing list