[Rt-commit] r12648 - in rt/branches/3.8-TESTING: share/html/NoAuth/js
sartak at bestpractical.com
sartak at bestpractical.com
Fri May 23 13:32:54 EDT 2008
Author: sartak
Date: Fri May 23 13:32:53 2008
New Revision: 12648
Modified:
rt/branches/3.8-TESTING/ (props changed)
rt/branches/3.8-TESTING/share/html/NoAuth/js/util.js
Log:
r56553 at onn: sartak | 2008-05-23 13:32:46 -0400
#7646. Revert parts of r4068 which doesn't properly abort the usual browser behavior, and it doesn't increase compatibility anyway
Modified: rt/branches/3.8-TESTING/share/html/NoAuth/js/util.js
==============================================================================
--- rt/branches/3.8-TESTING/share/html/NoAuth/js/util.js (original)
+++ rt/branches/3.8-TESTING/share/html/NoAuth/js/util.js Fri May 23 13:32:53 2008
@@ -194,12 +194,8 @@
if (e) {
var link = document.createElement('a');
link.setAttribute('href', '#');
+ link.setAttribute('onclick', "openCalWindow('"+input+"'); return false;");
- clickevent = function clickevent(e) { openCalWindow(input); return false; };
- if (! addEvent(link, "click", clickevent)) {
- return false;
- }
-
var text = document.createTextNode('<% loc("Choose a date") %>');
link.appendChild(text);
@@ -227,17 +223,6 @@
}
}
-function addEvent(obj, sType, fn) {
- if (obj.addEventListener) {
- obj.addEventListener(sType, fn, false);
- } else if (obj.attachEvent) {
- var r = obj.attachEvent("on"+sType, fn);
- } else {
- return false;
- }
- return true;
-}
-
function setCheckbox(form, name, val) {
var myfield = form.getElementsByTagName('input');
for ( var i = 0; i < myfield.length; i++ ) {
More information about the Rt-commit
mailing list