allow tag input to contain leading '#'

This commit is contained in:
Friendika 2011-10-24 17:00:22 -07:00
parent 4218e3f494
commit 3b33c0d075

View File

@ -218,7 +218,7 @@ function initEditor(cb){
$('#like-rotator-' + id).show(); $('#like-rotator-' + id).show();
reply = prompt("$term"); reply = prompt("$term");
if(reply && reply.length) { if(reply && reply.length) {
reply.replace('#',''); reply = reply.replace('#','');
if(reply.length) { if(reply.length) {
$.get('tagger/' + id + '?term=' + reply, function(data) { $.get('tagger/' + id + '?term=' + reply, function(data) {
$('#like-rotator-' + id).hide(); $('#like-rotator-' + id).hide();