truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

$ajaxSetup beforeSend replaced by plugin #181

Open demetris-manikas opened 4 years ago

demetris-manikas commented 4 years ago

Hi.

I have a situation in which I want all my ajax requests to the server contain an Authorization header. To accomplish this I have defined a beforeSend function in $ajaxSetup.

The plugin replaces the function defined in $ajaxSetup in order to clear the list and update some text. So I have to provide a beforeSend in the ajax config.

I would appreciate any help. Thanks