X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/ac8a325857c260750e651281ef379d108db9ff17..d72b83ef71cdd8234a9ed5c149577e29a685f42f:/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 --- 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); + } } }) },