Table of contents
No headers
// includes
dekiapi();
jquery.ui('smoothness');
// input form
<form>
"What: "; <input id="todowhat" type="text" />
" Who: ";
<select id="todowho">
foreach(var u in site.users where !u.anonymous) {
<option value=(u.name) selected=((u.id == user.id) ? 'selected' : nil)>u.name</option>
}
</select>
<input id="todoadd" type="button" value="Send" ctor="
when($this.click) {
@todosend({ entry: { what: #todowhat.val(), who: #todowho.val()}});
#todowhat.val('');
#todoadd.val('Send');
#todoadd.blur();
}
when(@todosend) {
Deki.Api.PostMessage(null, 'activity/poke',
'@'+ @todosend.entry.who+': '+ @todosend.entry.what );
}
" />
</form>
Comments