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
4896ffe5
Commit
4896ffe5
authored
Oct 26, 2016
by
Yann Gravrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #22058 and #23578
parent
c392b0cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
app/assets/javascripts/gfm_auto_complete.js.es6
app/assets/javascripts/gfm_auto_complete.js.es6
+4
-0
No files found.
CHANGELOG.md
View file @
4896ffe5
...
@@ -12,6 +12,7 @@ entry.
...
@@ -12,6 +12,7 @@ entry.
-
Trim leading and trailing whitespace on project_path (Linus Thiel)
-
Trim leading and trailing whitespace on project_path (Linus Thiel)
-
Prevent award emoji via notes for issues/MRs authored by user (barthc)
-
Prevent award emoji via notes for issues/MRs authored by user (barthc)
-
Adds support for the
`token`
attribute in project hooks API (Gauvain Pocentek)
-
Adds support for the
`token`
attribute in project hooks API (Gauvain Pocentek)
-
Change auto selection behaviour of emoji and slash commands to be more UX/Type friendly (Yann Gravrand)
-
Adds an optional path parameter to the Commits API to filter commits by path (Luis HGO)
-
Adds an optional path parameter to the Commits API to filter commits by path (Luis HGO)
-
Fix Markdown styling inside reference links (Jan Zdráhal)
-
Fix Markdown styling inside reference links (Jan Zdráhal)
-
Create new issue board list after creating a new label
-
Create new issue board list after creating a new label
...
...
app/assets/javascripts/gfm_auto_complete.js.es6
View file @
4896ffe5
...
@@ -34,6 +34,8 @@
...
@@ -34,6 +34,8 @@
},
},
DefaultOptions: {
DefaultOptions: {
sorter: function(query, items, searchKey) {
sorter: function(query, items, searchKey) {
// Highlight first item only if at least one char was typed
this.setting.highlightFirst = query.length > 0;
if ((items[0].name != null) && items[0].name === 'loading') {
if ((items[0].name != null) && items[0].name === 'loading') {
return items;
return items;
}
}
...
@@ -182,6 +184,7 @@
...
@@ -182,6 +184,7 @@
insertTpl: '${atwho-at}"${title}"',
insertTpl: '${atwho-at}"${title}"',
data: ['loading'],
data: ['loading'],
callbacks: {
callbacks: {
sorter: this.DefaultOptions.sorter,
beforeSave: function(milestones) {
beforeSave: function(milestones) {
return $.map(milestones, function(m) {
return $.map(milestones, function(m) {
if (m.title == null) {
if (m.title == null) {
...
@@ -236,6 +239,7 @@
...
@@ -236,6 +239,7 @@
displayTpl: this.Labels.template,
displayTpl: this.Labels.template,
insertTpl: '${atwho-at}${title}',
insertTpl: '${atwho-at}${title}',
callbacks: {
callbacks: {
sorter: this.DefaultOptions.sorter,
beforeSave: function(merges) {
beforeSave: function(merges) {
var sanitizeLabelTitle;
var sanitizeLabelTitle;
sanitizeLabelTitle = function(title) {
sanitizeLabelTitle = function(title) {
...
...
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