Commit 9a3719b8 authored by Phil Hughes's avatar Phil Hughes

Fixed weight filter dropdown going up

parent 88cf15d8
......@@ -39,7 +39,7 @@
return $dropdown.glDropdown({
selectable: true,
fieldName: $dropdown.data("field-name"),
showMenuAbove: true,
showMenuAbove: $dropdown.is('.js-issuable-form-weight'),
toggleLabel: function (selected, el) {
return $(el).data("id");
},
......@@ -57,7 +57,7 @@
clicked: function(selected, $el, e) {
if ($(dropdown).is(".js-filter-submit")) {
return $(dropdown).parents('form').submit();
} else if ($(dropdown).is('.js-issuable-form-weight')) {
} else if ($dropdown.is('.js-issuable-form-weight')) {
e.preventDefault();
} else {
selected = $dropdown.closest('.selectbox').find("input[name='" + ($dropdown.data('field-name')) + "']").val();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment