Commit 92ce4571 authored by Bryce Johnson's avatar Bryce Johnson

Revert adding renderMethod to weight select.

parent 007947f1
......@@ -12,21 +12,6 @@
$value = $block.find('.value');
abilityName = $dropdown.data('ability-name');
$loading = $block.find('.block-loading').fadeOut();
var renderMethod = function(data) {
if (data.weight != null) {
$value.html(data.weight);
} else {
$value.html('None');
}
return $sidebarCollapsedValue.html(data.weight);
};
if (gl.IssuableResource) {
gl.IssuableResource.subscribe(renderMethod);
}
updateWeight = function(selected) {
var data;
data = {};
......@@ -43,7 +28,12 @@
$dropdown.trigger('loaded.gl.dropdown');
$loading.fadeOut();
$selectbox.hide();
renderMethod(data);
if (data.weight != null) {
$value.html(data.weight);
} else {
$value.html('None');
}
return $sidebarCollapsedValue.html(data.weight);
});
};
return $dropdown.glDropdown({
......
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