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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
25c82c6f
Commit
25c82c6f
authored
Oct 12, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated JS to work with issue index & show
parent
f76f569b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-0
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+2
-2
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+1
-1
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+1
-1
No files found.
app/assets/javascripts/dispatcher.js
View file @
25c82c6f
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
shortcut_handler
=
null
;
shortcut_handler
=
null
;
switch
(
page
)
{
switch
(
page
)
{
case
'
projects:boards:show
'
:
case
'
projects:boards:show
'
:
case
'
projects:boards:index
'
:
shortcut_handler
=
new
ShortcutsNavigation
();
shortcut_handler
=
new
ShortcutsNavigation
();
break
;
break
;
case
'
projects:merge_requests:index
'
:
case
'
projects:merge_requests:index
'
:
...
...
app/assets/javascripts/labels_select.js
View file @
25c82c6f
...
@@ -292,7 +292,7 @@
...
@@ -292,7 +292,7 @@
return
;
return
;
}
}
if
(
page
===
'
projects:boards:show
'
)
{
if
(
$
(
'
html
'
).
hasClass
(
'
issue-boards-page
'
)
)
{
return
;
return
;
}
}
if
(
$dropdown
.
hasClass
(
'
js-multiselect
'
))
{
if
(
$dropdown
.
hasClass
(
'
js-multiselect
'
))
{
...
@@ -334,7 +334,7 @@
...
@@ -334,7 +334,7 @@
page
=
$
(
'
body
'
).
data
(
'
page
'
);
page
=
$
(
'
body
'
).
data
(
'
page
'
);
isIssueIndex
=
page
===
'
projects:issues:index
'
;
isIssueIndex
=
page
===
'
projects:issues:index
'
;
isMRIndex
=
page
===
'
projects:merge_requests:index
'
;
isMRIndex
=
page
===
'
projects:merge_requests:index
'
;
if
(
page
===
'
projects:boards:show
'
)
{
if
(
$
(
'
html
'
).
hasClass
(
'
issue-boards-page
'
)
)
{
if
(
label
.
isAny
)
{
if
(
label
.
isAny
)
{
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
'
label_name
'
]
=
[];
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
'
label_name
'
]
=
[];
}
}
...
...
app/assets/javascripts/milestone_select.js
View file @
25c82c6f
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
e
.
preventDefault
();
e
.
preventDefault
();
return
;
return
;
}
}
if
(
page
===
'
projects:boards:show
'
)
{
if
(
$
(
'
html
'
).
hasClass
(
'
issue-boards-page
'
)
)
{
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
$dropdown
.
data
(
'
field-name
'
)]
=
selected
.
name
;
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
$dropdown
.
data
(
'
field-name
'
)]
=
selected
.
name
;
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
e
.
preventDefault
();
e
.
preventDefault
();
...
...
app/assets/javascripts/users_select.js
View file @
25c82c6f
...
@@ -160,7 +160,7 @@
...
@@ -160,7 +160,7 @@
selectedId
=
user
.
id
;
selectedId
=
user
.
id
;
return
;
return
;
}
}
if
(
page
===
'
projects:boards:show
'
)
{
if
(
$
(
'
html
'
).
hasClass
(
'
issue-boards-page
'
)
)
{
selectedId
=
user
.
id
;
selectedId
=
user
.
id
;
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
$dropdown
.
data
(
'
field-name
'
)]
=
user
.
id
;
gl
.
issueBoards
.
BoardsStore
.
state
.
filters
[
$dropdown
.
data
(
'
field-name
'
)]
=
user
.
id
;
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
gl
.
issueBoards
.
BoardsStore
.
updateFiltersUrl
();
...
...
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