Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
92ce4571
Commit
92ce4571
authored
Nov 21, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert adding renderMethod to weight select.
parent
007947f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
app/assets/javascripts/weight_select.js
app/assets/javascripts/weight_select.js
+6
-16
No files found.
app/assets/javascripts/weight_select.js
View file @
92ce4571
...
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment