Skip to content

Commit

Permalink
Fixes #419
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Corbi committed Mar 22, 2017
1 parent b3150ee commit 7444807
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ckanext/odm_dataset/fanstatic/odm_keywords-module.js
Expand Up @@ -2,14 +2,13 @@ function initMultiSelect(tSel) {
tSel.select2('destroy');
tSel.select2({
tags: true,
tokenSeparators: [',', ';'],
dropdownCss: {display:'none'}
tokenSeparators: [',', ';']
});

//manual add new values by Enter
(function (t) {
$('#s2id_' + t.attr('id')).on('keyup', function(e) {
if(e.keyCode === 13 || e.keyCode === 9){
if(e.keyCode === 13){
//add new value
t.val(t.val() + ',' + $('#s2id_' + t.attr('id') + ' input ').val());

Expand Down

0 comments on commit 7444807

Please sign in to comment.