Skip to content

Commit e7b108e

Browse files
committed
Fixes so that passed options can be used
1 parent 63ed940 commit e7b108e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/javascripts/godmin-tags.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Godmin.Tags = (function() {
1010
}
1111

1212
function initializeTagger($el, options) {
13-
options = {
13+
var defaults = {
1414
delimiter: ', ',
1515
create: true,
1616
valueField: 'name',
@@ -25,7 +25,7 @@ Godmin.Tags = (function() {
2525
);
2626
}
2727
};
28-
Godmin.SelectBoxes.initializeSelectBox($el, options);
28+
Godmin.SelectBoxes.initializeSelectBox($el, $.extend(defaults, options));
2929
}
3030

3131
return {

0 commit comments

Comments
 (0)