[Rt-commit] rt branch, 4.2/autocomplete-multiple-trailing-comma, created. rt-4.2.3rc1-2-ge788f1d
Alex Vandiver
alexmv at bestpractical.com
Wed Feb 19 20:06:25 EST 2014
The branch, 4.2/autocomplete-multiple-trailing-comma has been created
at e788f1dca194f5e45641a1eae7f2cfc17f916522 (commit)
- Log -----------------------------------------------------------------
commit e788f1dca194f5e45641a1eae7f2cfc17f916522
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Feb 19 20:05:31 2014 -0500
Always append an extra delimeter for multiple autocompletes
This hints at the delimeter, in the case of email autocomplete, for
instance.
diff --git a/share/static/js/autocomplete.js b/share/static/js/autocomplete.js
index 3742a23..d5a8af6 100644
--- a/share/static/js/autocomplete.js
+++ b/share/static/js/autocomplete.js
@@ -53,8 +53,8 @@ window.RT.Autocomplete.bind = function(from) {
var str = term + ''; // stringify integers to call .match
return str.match(/^\d+$/);
} );
- terms.push(''); // add trailing space so user can input another ticket id directly
}
+ terms.push(''); // add trailing delimeter so user can input another value directly
this.value = terms.join(what == 'Tickets' ? ' ' : ", ");
return false;
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list