diff options
author | Ugnich Anton | 2012-10-14 11:32:58 +0700 |
---|---|---|
committer | Ugnich Anton | 2012-10-14 11:32:58 +0700 |
commit | 98f036ae01fe90ad9d5853918602b705fdd41f02 (patch) | |
tree | 4926b28a09a11376ce29fe0def9c432aab9ae7c2 /web/post3.js | |
parent | 4441c908f773f1b7c2b203fc6f47349408ae82c0 (diff) |
A lot of changes.
Diffstat (limited to 'web/post3.js')
-rw-r--r-- | web/post3.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/post3.js b/web/post3.js index 31b3f8f2..3267f9c0 100644 --- a/web/post3.js +++ b/web/post3.js @@ -25,7 +25,12 @@ function addLocation() { } function addTag(tag) { - document.forms["postmsg"].body.value='*'+tag+' '+document.forms["postmsg"].body.value; + var s = document.forms["postmsg"].body.value; + if (s.indexOf ('#') == 0) { + document.forms["postmsg"].body.value = s + ' *' + tag; + } else { + document.forms["postmsg"].body.value = '*' + tag + ' ' + s; + } return false; } |