Skip to content

Commit

Permalink
Merge pull request #319 from Kunstmaan/chosen_width
Browse files Browse the repository at this point in the history
allow overwrite of chosen field width
  • Loading branch information
jockri committed Jul 18, 2014
2 parents 220aa9e + 58da00b commit 799711d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,13 @@ function initCustomSelect() {
$('select.chzn-select').each(function() {
$(this).chosen({
search_contains: true,
allow_single_deselect: $(this).attr('data-allowempty')
allow_single_deselect: $(this).attr('data-allowempty'),
width: ($(this).attr('data-chznwidth') ? $(this).data('chznwidth') : '365px')
});
});
}



////FILTERS
function initFilter() {
var checked = $("#filter_on_off").attr("checked");
Expand Down

0 comments on commit 799711d

Please sign in to comment.