X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;h=bf4ae9aa9876ff4e202b32aef0f34b3bf7704e84;hb=cef2aa1d629bb63d6743632f9bc76a467dd2b098;hp=78e7cc5c8fc2e8d542d8b5d7adee6e9394733fc7;hpb=10eb640e25404415291524b67e07f3d40695c746;p=citadel.git
diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js
index 78e7cc5c8..bf4ae9aa9 100644
--- a/webcit/static/wclib.js
+++ b/webcit/static/wclib.js
@@ -465,3 +465,19 @@ function ctdl_ts_getInnerText(el) {
}
+
+// This function handles the creation of new notes in the "Notes" view.
+//
+function add_new_note() {
+
+ new_eid = Math.random() + '';
+ new_eid = new_eid.substr(3);
+
+ $('new_notes_here').innerHTML = $('new_notes_here').innerHTML
+ + ''
+ + '' + Date() + '
'
+ ;
+
+ new Ajax.InPlaceEditor('note' + new_eid,
+ 'updatenote?eid=' + new_eid , {rows:5,cols:72});
+}