git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Tweaked NavigationItem.is_active to better leverage the caching.
[philo.git]
/
philo
/
static
/
philo
/
js
/
TagCreation.js
diff --git
a/philo/static/philo/js/TagCreation.js
b/philo/static/philo/js/TagCreation.js
index
610a4f0
..
a23e609
100644
(file)
--- a/
philo/static/philo/js/TagCreation.js
+++ b/
philo/static/philo/js/TagCreation.js
@@
-85,6
+85,9
@@
var tagCreation = window.tagCreation;
addEvent(input, 'keypress', function(e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
e.preventDefault();
+ if (select.options.length == 0) {
+ tagCreation.addTagFromSlug(addLink);
+ }
}
})
},