* 'Check Attendee Availability' button is now enabled or disabled depending upon...
[citadel.git] / webcit / static / wclib.js
index 01febd884da1a311a67f8c3979507050ac02fac3..be07284322ef7bd4b41bfa3605be31882dabd6d4 100644 (file)
@@ -783,6 +783,23 @@ function RecurrenceShowHide() {
        }
 
 }
+
+
+// Enable or disable the 'check attendee availability' button depending on whether
+// the attendees list is empty
+function EnableOrDisableCheckButton()
+{
+       if ($('attendees_box').value.length == 0) {
+               $('check_button').disabled = true;
+       }
+       else {
+               $('check_button').disabled = false;
+       }
+}
+
+
+
+
 function launchChat(event) {
 window.open('chat', 'ctdl_chat_window', 'toolbar=no,location=no,directories=no,copyhistory=no,status=no,scrollbars=yes,resizable=yes');
 }