autocomplete contacts nickname while writting in a comment box.

This commit is contained in:
Fabio Comuni 2011-10-25 15:01:58 +02:00
parent afce790e56
commit bcb672e7ff
5 changed files with 187 additions and 5 deletions

View file

@ -78,8 +78,6 @@
menu.toggle();
return false;
});
/* notifications template */
var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html());
@ -163,7 +161,9 @@
}
}
});
});
});
function NavUpdate() {
@ -245,6 +245,8 @@
commentBusy = false;
$('body').css('cursor', 'auto');
}
/* autocomplete @nicknames */
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
});
}
@ -445,6 +447,7 @@ function setupFieldRichtext(){
});
}
/**
* sprintf in javascript
* "{0} and {1}".format('zero','uno');