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
15978b8d
Commit
15978b8d
authored
Nov 17, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert autoupdate implementation.
parent
ae7d3c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/weight_select.js
app/assets/javascripts/weight_select.js
+4
-3
No files found.
app/assets/javascripts/weight_select.js
View file @
15978b8d
...
...
@@ -13,7 +13,6 @@
abilityName
=
$dropdown
.
data
(
'
ability-name
'
);
$loading
=
$block
.
find
(
'
.block-loading
'
).
fadeOut
();
var
ajaxResource
=
gl
.
IssuableResource
?
gl
.
IssuableResource
.
put
.
bind
(
gl
.
IssuableResource
)
:
$
.
ajax
;
var
renderMethod
=
function
(
data
)
{
if
(
data
.
weight
!=
null
)
{
...
...
@@ -24,7 +23,9 @@
return
$sidebarCollapsedValue
.
html
(
data
.
weight
);
};
gl
.
IssuableResource
&&
gl
.
IssuableResource
.
subscribe
(
renderMethod
);
if
(
gl
.
IssuableResource
)
{
gl
.
IssuableResource
.
subscribe
(
renderMethod
);
}
updateWeight
=
function
(
selected
)
{
var
data
;
...
...
@@ -33,7 +34,7 @@
data
[
abilityName
].
weight
=
selected
!=
null
?
selected
:
null
;
$loading
.
fadeIn
();
$dropdown
.
trigger
(
'
loading.gl.dropdown
'
);
return
ajaxResource
({
return
$
.
ajax
({
type
:
'
PUT
'
,
dataType
:
'
json
'
,
url
:
updateUrl
,
...
...
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