]> code.citadel.org Git - citadel.git/blobdiff - webcit/static/wclib.js
*fix numerous regressions that I let slip:
[citadel.git] / webcit / static / wclib.js
index b2d62e1a73e20185c0dd6cc1e5825cbb4b888529..e4ead482f5ccd3f6def25c1863c413ab55be2669 100644 (file)
@@ -29,6 +29,7 @@ Event.observe(window, 'load', ToggleTaskDateOrNoDateActivate);
 Event.observe(window, 'load', taskViewActivate);
 //document.observe("dom:loaded", setupPrefEngine);
 document.observe("dom:loaded", setupIconBar);
+document.observe('dom:loaded', function() { $('ib_chat_launch').observe('click', launchChat);});
 function CtdlRandomString()  {
        return((Math.random()+'').substr(3));
 }
@@ -754,3 +755,6 @@ function RecurrenceShowHide() {
        }
 
 }
+function launchChat(event) {
+window.open('chat', 'ctdl_chat_window', 'toolbar=no,location=no,directories=no,copyhistory=no,status=no,scrollbars=yes,resizable=yes');
+}