* chosen suppot change dropmenu direction.
This commit is contained in:
@@ -13,6 +13,13 @@ defaultChosenOptions = {no_results_text: noResultsMatch, width:'100%', allow_sin
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#mailto").attr('data-placeholder', chooseUsersToMail);
|
||||
$(".chosen, #productID").chosen(defaultChosenOptions);
|
||||
$("#mailto, .chosen, #productID").each(function()
|
||||
{
|
||||
var $this = $(this);
|
||||
if($this.offset().top + 240 > $(document.body).height())
|
||||
{
|
||||
$this.attr('data-css-class', 'chosen-up');
|
||||
}
|
||||
}).chosen(defaultChosenOptions);
|
||||
});
|
||||
</script>
|
||||
|
||||
6
www/js/jquery/chosen/min.js
vendored
6
www/js/jquery/chosen/min.js
vendored
File diff suppressed because one or more lines are too long
@@ -261,6 +261,9 @@ fieldset > .form-group {margin-bottom: 0;}
|
||||
/* chosen container in input group */
|
||||
.input-group > .chosen-container {display: table-cell;}
|
||||
|
||||
/* chosen up */
|
||||
.chosen-up.chosen-container .chosen-drop {bottom: 100%; top: inherit; border-radius: 2px 2px 0 0; box-shadow: 0 -3px 5px rgba(0,0,0,.15); margin-top: auto; margin-bottom: -1px;}
|
||||
|
||||
/* Condensed form */
|
||||
.form-condensed .table-form {margin-bottom: 0;}
|
||||
.form-condensed .table-form td, .form-condensed .table-form th {padding: 5px; font-size: 12px;}
|
||||
|
||||
Reference in New Issue
Block a user