Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit b8607e1

Browse files
committed
Merge pull request #558 from staeke/master
Introduced onSend callback to be able to modifiy jQuery.ajax parameters....
2 parents b65741b + d2181a7 commit b8607e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jquery.tokeninput.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,11 @@ $.TokenList = function (input, url_or_data, settings) {
985985
}
986986
};
987987

988+
// Provide a beforeSend callback
989+
if (settings.onSend) {
990+
settings.onSend(ajax_params);
991+
}
992+
988993
// Make the request
989994
$.ajax(ajax_params);
990995
} else if($(input).data("settings").local_data) {

0 commit comments

Comments
 (0)