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