BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
05525b55
Commit
05525b55
authored
Jun 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with todo button not updating state
This would happen when a todo already exists, the state of the button wouldn't update after the ajax call
parent
82be673b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
right_sidebar.js.coffee
app/assets/javascripts/right_sidebar.js.coffee
+4
-4
issuable.scss
app/assets/stylesheets/pages/issuable.scss
+1
-1
No files found.
app/assets/javascripts/right_sidebar.js.coffee
View file @
05525b55
...
...
@@ -70,18 +70,18 @@ class @Sidebar
$
(
'.js-issuable-todo-loading'
).
addClass
'hidden'
if
data
.
count
is
0
$this
.
removeAttr
'data-id'
$btnText
.
text
$this
.
data
(
'todo-text'
)
$todoPendingCount
.
addClass
'hidden'
else
$btnText
.
text
$this
.
data
(
'mark-text'
)
$todoPendingCount
.
removeClass
'hidden'
if
data
.
todo
?
$btnText
.
text
$this
.
data
(
'mark-text'
)
$this
.
attr
'data-id'
,
data
.
todo
.
id
else
$this
.
removeAttr
'data-id'
$btnText
.
text
$this
.
data
(
'todo-text'
)
sidebarDropdownLoading
:
(
e
)
->
$sidebarCollapsedIcon
=
$
(
@
).
closest
(
'.block'
).
find
(
'.sidebar-collapsed-icon'
)
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
05525b55
...
...
@@ -263,7 +263,7 @@
}
}
a
:not
(
.issuable-header-btn
)
{
a
{
&
:hover
{
color
:
$md-link-color
;
text-decoration
:
none
;
...
...
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