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
8b977b29
Commit
8b977b29
authored
Jan 27, 2017
by
Phil Hughes
Committed by
Fatih Acet
Feb 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some failing lint tests
parent
0904e9b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
app/assets/javascripts/boards/components/modal/footer.js.es6
app/assets/javascripts/boards/components/modal/footer.js.es6
+1
-1
app/assets/javascripts/boards/components/modal/list.js.es6
app/assets/javascripts/boards/components/modal/list.js.es6
+5
-4
app/assets/javascripts/boards/models/issue.js.es6
app/assets/javascripts/boards/models/issue.js.es6
+1
-1
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+1
-1
No files found.
app/assets/javascripts/boards/components/modal/footer.js.es6
View file @
8b977b29
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
},
},
addIssues() {
addIssues() {
const list = this.selectedList;
const list = this.selectedList;
const issueIds = this.selectedIssues.map(issue => issue.
_i
d);
const issueIds = this.selectedIssues.map(issue => issue.
globalI
d);
// Post the data to the backend
// Post the data to the backend
this.$http.post(this.bulkUpdatePath, {
this.$http.post(this.bulkUpdatePath, {
...
...
app/assets/javascripts/boards/components/modal/list.js.es6
View file @
8b977b29
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
},
},
methods: {
methods: {
toggleIssue: ModalStore.toggleIssue.bind(ModalStore),
toggleIssue: ModalStore.toggleIssue.bind(ModalStore),
listHeight
() {
listHeight() {
return this.$refs.list.getBoundingClientRect().height;
return this.$refs.list.getBoundingClientRect().height;
},
},
scrollHeight
() {
scrollHeight() {
return this.$refs.list.scrollHeight;
return this.$refs.list.scrollHeight;
},
},
scrollTop
() {
scrollTop() {
return this.$refs.list.scrollTop + this.listHeight();
return this.$refs.list.scrollTop + this.listHeight();
},
},
showIssue(issue) {
showIssue(issue) {
...
@@ -70,7 +70,8 @@
...
@@ -70,7 +70,8 @@
this.$refs.list.onscroll = () => {
this.$refs.list.onscroll = () => {
const currentPage = Math.floor(this.issues.length / this.perPage);
const currentPage = Math.floor(this.issues.length / this.perPage);
if ((this.scrollTop() > this.scrollHeight() - 100) && !this.loadingNewPage && currentPage === this.page) {
if ((this.scrollTop() > this.scrollHeight() - 100) && !this.loadingNewPage
&& currentPage === this.page) {
this.loadingNewPage = true;
this.loadingNewPage = true;
this.page += 1;
this.page += 1;
}
}
...
...
app/assets/javascripts/boards/models/issue.js.es6
View file @
8b977b29
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
class ListIssue {
class ListIssue {
constructor (obj) {
constructor (obj) {
this.
_i
d = obj.id;
this.
globalI
d = obj.id;
this.id = obj.iid;
this.id = obj.iid;
this.title = obj.title;
this.title = obj.title;
this.confidential = obj.confidential;
this.confidential = obj.confidential;
...
...
app/assets/stylesheets/pages/boards.scss
View file @
8b977b29
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
.form-control
{
.form-control
{
display
:
inline-block
;
display
:
inline-block
;
width
:
210px
;
width
:
210px
;
margin-right
:
10px
margin-right
:
10px
;
}
}
}
}
...
...
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