Added ability to select tags in tag input

This commit is contained in:
Marcin Kurczewski 2014-09-29 19:48:14 +02:00
parent e58b556f66
commit 51b3342d62
2 changed files with 3 additions and 1 deletions

1
TODO
View file

@ -110,7 +110,6 @@ miscellaneous:
- use 1 token for logins, so that session isn't killed - use 1 token for logins, so that session isn't killed
- endless pager should include information about page number - endless pager should include information about page number
- add hotkeys for focusing items in top navigation - add hotkeys for focusing items in top navigation
- add ability to select tags text in tag input
- add customizable favicon - add customizable favicon
- add customizable logo - add customizable logo
- add log engine and log everything that should be logged - add log engine and log everything that should be logged

View file

@ -40,6 +40,9 @@ App.Controls.TagInput = function(
$wrapper.append($input); $wrapper.append($input);
$wrapper.insertAfter($underlyingInput); $wrapper.insertAfter($underlyingInput);
$wrapper.click(function(e) { $wrapper.click(function(e) {
if (e.target.nodeName === 'LI') {
return;
}
e.preventDefault(); e.preventDefault();
$input.focus(); $input.focus();
}); });