Skip to content

Commit

Permalink
Update angular-chosen.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
adityasharat committed Mar 8, 2016
1 parent 4c33bae commit 28d9112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angular-chosen.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
* http://harvesthq.github.io/chosen/
* http://adityasharat.github.io/angular-chosen/
*/
!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);
!function(e){function o(e){var o,t,n,s;return o=[{onChange:"change"},{onReady:"chosen:ready"},{onMaxSelected:"chosen:maxselected"},{onShowDropdown:"chosen:showing_dropdown"},{onHideDropdown:"chosen:hiding_dropdown"},{onNoResult:"chosen:no_results"}],t={options:"=",ngModel:"=",ngDisabled:"="},s=[],Object.keys(t).forEach(function(e){s.push(e)}),o.forEach(function(e){var o=Object.keys(e)[0];t[o]="="}),n=function(t,n,a){var i=parseInt(a.maxSelection,10),l=parseInt(a.searchThreshold,10);(isNaN(i)||i===1/0)&&(i=void 0),(isNaN(l)||l===1/0)&&(l=void 0);var d=void 0!==n.attr("allow-single-deselect")?!0:!1,c=void 0!==n.attr("no-results-text")?a.noResultsText:"No results found.",r=void 0!==n.attr("disable-search")?JSON.parse(a.disableSearch):!1,p=void 0!==n.attr("placeholder-text-single")?a.placeholderTextSingle:"Select an Option",h=void 0!==n.attr("placeholder-text-multiple")?a.placeholderTextMultiple:"Select Some Options",u=void 0!==n.attr("display-disabled-options")?JSON.parse(a.displayDisabledOptions):!0,_=void 0!==n.attr("display-selected-options")?JSON.parse(a.displaySelectedOptions):!0;n.chosen({width:"100%",max_selected_options:i,disable_search_threshold:l,search_contains:!0,allow_single_deselect:d,no_results_text:c,disable_search:r,placeholder_text_single:p,placeholder_text_multiple:h,display_disabled_options:u,display_selected_options:_}),n.on("change",function(){n.trigger("chosen:updated")}),t.$watchGroup(s,function(){e(function(){n.trigger("chosen:updated")},100)}),o.forEach(function(e){var o=Object.keys(e)[0];"function"==typeof t[o]&&n.on(e[o],function(e){t.$apply(function(){t[o](e)})})})},{name:"chosen",scope:t,restrict:"A",link:n}}var t=e.module("angular.chosen",[]);t.directive("chosen",["$timeout",o])}(angular);

0 comments on commit 28d9112

Please sign in to comment.