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

Fixed weight filter dropdown going up

parent 88cf15d8
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
return $dropdown.glDropdown({ return $dropdown.glDropdown({
selectable: true, selectable: true,
fieldName: $dropdown.data("field-name"), fieldName: $dropdown.data("field-name"),
showMenuAbove: true, showMenuAbove: $dropdown.is('.js-issuable-form-weight'),
toggleLabel: function (selected, el) { toggleLabel: function (selected, el) {
return $(el).data("id"); return $(el).data("id");
}, },
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
clicked: function(selected, $el, e) { clicked: function(selected, $el, e) {
if ($(dropdown).is(".js-filter-submit")) { if ($(dropdown).is(".js-filter-submit")) {
return $(dropdown).parents('form').submit(); return $(dropdown).parents('form').submit();
} else if ($(dropdown).is('.js-issuable-form-weight')) { } else if ($dropdown.is('.js-issuable-form-weight')) {
e.preventDefault(); e.preventDefault();
} else { } else {
selected = $dropdown.closest('.selectbox').find("input[name='" + ($dropdown.data('field-name')) + "']").val(); 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