Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dist/fastselect.standalone.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@
parseResponse: null, // parse server response with your handler and return processed data - function(response, fastsearchApi)
onResultsCreate: null, // adjust results element - function($allResults, data, fastsearchApi)
onGroupCreate: null, // adjust group element when created - function($group, groupModel, fastsearchApi)
onItemCreate: null // adjust item element when created - function($item, model, fastsearchApi)
onItemCreate: null, // adjust item element when created - function($item, model, fastsearchApi)
onItemRemove: null // removed item - function($item, model, fastsearchApi)
};

$.fastsearch = Fastsearch;
Expand Down Expand Up @@ -895,6 +896,7 @@
this.updateDomElements();
this.writeToInput();

this.options.onItemRemove && this.options.onItemRemove.call(this.fastsearch,$choiceItem,removedModel,this.fastsearch);
},

writeToInput: function() {
Expand Down Expand Up @@ -1201,6 +1203,7 @@

parseData: null,
onItemSelect: null,
onItemRemove: null,
onItemCreate: null,

placeholder: 'Choose option',
Expand Down