Skip to content

Instantly share code, notes, and snippets.

@chesster
Created February 4, 2015 11:48
Show Gist options
  • Save chesster/4be69e1c518e1b5d87db to your computer and use it in GitHub Desktop.
Save chesster/4be69e1c518e1b5d87db to your computer and use it in GitHub Desktop.
$(document).ready(function() {
AjaxBootstrapSelectList.prototype.setTitle = function (title) {
if (!this.plugin.request) {
this.title = this.plugin.$element.attr('title');
if($.isEmptyObject(this.plugin.selectpicker.$lis)) {
this.plugin.selectpicker.options.selectedTextFormat = 'static';
}
this.plugin.$element.attr('title', title);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment