Skip to content

Commit

Permalink
Fix #10038: Prevent attaching empty tag strings.
Browse files Browse the repository at this point in the history
Fixes problem with Chrome browser generating JS event for 'Existing tags'.
  • Loading branch information
amyreese committed Jan 13, 2009
1 parent 3f3a6c2 commit dd91387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/common.js
Expand Up @@ -193,6 +193,9 @@ function tag_string_append( p_string ) {
t_tag_separator = document.getElementById('tag_separator').value;
t_tag_string = document.getElementById('tag_string');
t_tag_select = document.getElementById('tag_select');

if ( Trim( p_string ) == '' ) { return; }

if ( t_tag_string.value != '' ) {
t_tag_string.value = t_tag_string.value + t_tag_separator + p_string;
} else {
Expand Down

0 comments on commit dd91387

Please sign in to comment.