The tag separator now manages , differently
This commit is contained in:
parent
c37fc6f3cd
commit
9fbf119d08
@ -32,6 +32,10 @@ $(document).on 'turbolinks:load', ->
|
||||
$(this).css visibility: 'hidden'
|
||||
|
||||
$('.field.tags input').tagsInput
|
||||
delimiter: [' ', ',']
|
||||
delimiter: ' '
|
||||
defaultText: ''
|
||||
autocomplete_url: '/tags.json'
|
||||
onChange: ->
|
||||
value = $(this).val()
|
||||
if value.indexOf(',') >= 0
|
||||
$(this).val(value.replace /,/, '')
|
||||
|
File diff suppressed because one or more lines are too long
@ -62312,9 +62312,16 @@ exports.MarkerCluster = MarkerCluster;
|
||||
});
|
||||
}
|
||||
return $('.field.tags input').tagsInput({
|
||||
delimiter: [' ', ','],
|
||||
delimiter: ' ',
|
||||
defaultText: '',
|
||||
autocomplete_url: '/tags.json'
|
||||
autocomplete_url: '/tags.json',
|
||||
onChange: function() {
|
||||
var value;
|
||||
value = $(this).val();
|
||||
if (value.indexOf(',') >= 0) {
|
||||
return $(this).val(value.replace(/,/, ''));
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user