* fix chosen drop position.
This commit is contained in:
@@ -6,12 +6,11 @@ var defaultChosenOptions = {no_results_text: noResultsMatch, width:'100%', allow
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#mailto").attr('data-placeholder', chooseUsersToMail);
|
||||
$("#mailto, .chosen, #productID").chosen(defaultChosenOptions).on('chosen:showing_dropdown', function()
|
||||
$("#mailto, #productID").chosen(defaultChosenOptions).on('chosen:showing_dropdown', function()
|
||||
{
|
||||
var $this = $(this);
|
||||
var $chosen = $this.next('.chosen-container').removeClass('chosen-up');
|
||||
var $drop = $chosen.find('.chosen-drop');
|
||||
$chosen.toggleClass('chosen-up', $drop.height() + $drop.offset().top - $(document).scrollTop() > $(window).height());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -108,16 +108,16 @@
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-2"><?php echo $lang->todo->status;?></label>
|
||||
<div class="col-sm-2">
|
||||
<?php echo html::select('status', $lang->todo->statusList, $todo->status, "class='form-control'");?>
|
||||
<?php echo html::select('status', $lang->todo->statusList, $todo->status, "class='form-control chosen-simple'");?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row form-group">
|
||||
<label class="col-sm-2"><?php echo $lang->todo->beginAndEnd;?></label>
|
||||
<div class="col-sm-2" style='padding-right:0px'>
|
||||
<?php echo html::select('begin', $times, $todo->begin, 'onchange=selectNext(); class="form-control chosen"')?>
|
||||
<?php echo html::select('begin', $times, $todo->begin, 'onchange=selectNext(); class="form-control chosen" data-drop_direction="up"')?>
|
||||
</div>
|
||||
<div class="col-sm-2" style='padding-left:0px'>
|
||||
<?php echo html::select('end', $times, $todo->end, 'class="form-control chosen"');?>
|
||||
<?php echo html::select('end', $times, $todo->end, 'class="form-control chosen" data-drop_direction="up"');?>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class='checkbox-primary dateSwitcher'>
|
||||
|
||||
+4
-4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user