9426: suppress new lines in the tag content editable field
[arvados.git] / apps / workbench / app / assets / javascripts / edit_collection_tags.js
index f13c54c353da761d5b7fe86dd433914ba1fe0513..dc8c0330cc1858e7ce5d038b4bd97d25c8119af0 100644 (file)
@@ -61,5 +61,8 @@ jQuery(function($){
       var $collection_tags = $(this).closest('.collection-tags-container');
       var $clone = $collection_tags.find('tr.hide').clone(true).removeClass('hide');
       $collection_tags.find('table').append($clone);
+    }).
+    on('keypress', '.collection-tag-field', function(event){
+      return event.which != 13;
     });
 });