source:
trunk/www.guidonia.net/wp/wp-content/plugins/simple-tags/2.5/inc/js/helper-add-tags.js@
44
Last change on this file since 44 was 44, checked in by , 14 years ago | |
---|---|
File size: 292 bytes |
Line | |
---|---|
1 | function addTag(tag) { |
2 | var tag_entry = document.getElementById("old_tags_input"); |
3 | if ( tag_entry.value.length > 0 && !tag_entry.value.match(/,\s*$/) ) { |
4 | tag_entry.value += ", "; |
5 | } |
6 | var re = new RegExp(tag + ","); |
7 | if ( !tag_entry.value.match(re) ) { |
8 | tag_entry.value += tag + ", "; |
9 | } |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.