[Rt-commit] r3401 - in rt/branches/3.5-TESTING: . html html/NoAuth/js

trs at bestpractical.com trs at bestpractical.com
Wed Jul 6 12:24:56 EDT 2005


Author: trs
Date: Wed Jul  6 12:24:56 2005
New Revision: 3401

Added:
   rt/branches/3.5-TESTING/html/NoAuth/js/
   rt/branches/3.5-TESTING/html/NoAuth/js/util.js
Removed:
   rt/branches/3.5-TESTING/html/rt.js
Modified:
   rt/branches/3.5-TESTING/   (props changed)
Log:
 r4823 at wintermute:  tom | 2005-07-06 12:11:28 -0400
 Moved JS to a better place (eventually we should keep all JS in the
 same dir) and renamed it to be more descriptive.


Added: rt/branches/3.5-TESTING/html/NoAuth/js/util.js
==============================================================================
--- (empty file)
+++ rt/branches/3.5-TESTING/html/NoAuth/js/util.js	Wed Jul  6 12:24:56 2005
@@ -0,0 +1,22 @@
+% $r->content_type('application/x-javascript');
+
+function hideshow(id) {
+    e = document.getElementById(id);
+    
+    if (e.className.match(/\bhidden\b/))
+        e.className = e.className.replace(/\s?\bhidden\b/, '');
+    else {
+        if (e.className)
+            e.className += ' hidden';
+        else
+            e.className = 'hidden';
+    }
+    return false;
+}   
+
+function openCalWindow(field) {
+    var objWindow = window.open('<%$RT::WebPath%>/CalPopup.html?field='+field, 'Pick', 'height=400,width=400,scrollbars=1');
+    objWindow.focus();
+}
+
+% $m->abort;


More information about the Rt-commit mailing list