diff --git a/angular-chosen.min.js b/angular-chosen.min.js index 537a112..4989a10 100644 --- a/angular-chosen.min.js +++ b/angular-chosen.min.js @@ -26,4 +26,4 @@ * http://harvesthq.github.io/chosen/ * http://adityasharat.github.io/angular-chosen/ */ -!function(e){function n(e){var n,o,t,s;return n=[{onChange:"change"},{onReady:"chosen:ready"},{onMaxSelected:"chosen:maxselected"},{onShowDropdown:"chosen:showing_dropdown"},{onHideDropdown:"chosen:hiding_dropdown"},{onNoResult:"chosen:no_results"}],o={options:"=",ngModel:"=",ngDisabled:"="},s=[],Object.keys(o).forEach(function(e){s.push(e)}),n.forEach(function(e){var n=Object.keys(e)[0];o[n]="="}),t=function(o,t,c){var a=parseInt(c.maxSelection,10),r=parseInt(c.searchThreshold,10);(isNaN(a)||a===1/0)&&(a=void 0),(isNaN(r)||r===1/0)&&(r=void 0);var i=void 0!==t.attr("allow-single-deselect")?!0:!1,d=void 0!==t.attr("no-results-text")?c.noResultsText:"No results found.";t.chosen({width:"100%",max_selected_options:a,disable_search_threshold:r,search_contains:!0,allow_single_deselect:i,no_results_text:d}),t.on("change",function(){t.trigger("chosen:updated")}),o.$watchGroup(s,function(){e(function(){t.trigger("chosen:updated")},100)}),n.forEach(function(e){var n=Object.keys(e)[0];"function"==typeof o[n]&&t.on(e[n],function(e){o.$apply(function(){o[n](e)})})})},{name:"chosen",scope:o,restrict:"A",link:t}}var o=e.module("angular.chosen",[]);o.directive("chosen",["$timeout",n])}(angular); +!function(e){function o(e){var o,n,t,c;return o=[{onChange:"change"},{onReady:"chosen:ready"},{onMaxSelected:"chosen:maxselected"},{onShowDropdown:"chosen:showing_dropdown"},{onHideDropdown:"chosen:hiding_dropdown"},{onNoResult:"chosen:no_results"}],n={options:"=",ngModel:"=",ngDisabled:"="},c=[],Object.keys(n).forEach(function(e){c.push(e)}),o.forEach(function(e){var o=Object.keys(e)[0];n[o]="="}),t=function(n,t,s){var l=parseInt(s.maxSelection,10),a=parseInt(s.searchThreshold,10);(isNaN(l)||l===1/0)&&(l=void 0),(isNaN(a)||a===1/0)&&(a=void 0);var i=void 0!==t.attr("allow-single-deselect")?!0:!1,r=void 0!==t.attr("no-results-text")?s.noResultsText:"No results found.",d=void 0!==t.attr("placeholder-text-single")?s.placeholderTextSingle:"Select an Option",h=void 0!==t.attr("placeholder-text-multiple")?s.placeholderTextMultiple:"Select Some Options";t.chosen({width:"100%",max_selected_options:l,disable_search_threshold:a,search_contains:!0,allow_single_deselect:i,no_results_text:r,placeholder_text_single:d,placeholder_text_multiple:h}),t.on("change",function(){t.trigger("chosen:updated")}),n.$watchGroup(c,function(){e(function(){t.trigger("chosen:updated")},100)}),o.forEach(function(e){var o=Object.keys(e)[0];"function"==typeof n[o]&&t.on(e[o],function(e){n.$apply(function(){n[o](e)})})})},{name:"chosen",scope:n,restrict:"A",link:t}}var n=e.module("angular.chosen",[]);n.directive("chosen",["$timeout",o])}(angular);