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
Boxiang Sun
gitlab-ce
Commits
9fd89990
Commit
9fd89990
authored
Oct 12, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move to copy_as_gfm to behaviors since it is invoked on every page
parent
101779e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/behaviors/copy_as_gfm.js
app/assets/javascripts/behaviors/copy_as_gfm.js
+3
-2
app/assets/javascripts/behaviors/index.js
app/assets/javascripts/behaviors/index.js
+1
-0
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
No files found.
app/assets/javascripts/copy_as_gfm.js
→
app/assets/javascripts/
behaviors/
copy_as_gfm.js
View file @
9fd89990
/* eslint-disable class-methods-use-this, object-shorthand, no-unused-vars, no-use-before-define, no-new, max-len, no-restricted-syntax, guard-for-in, no-continue */
import
_
from
'
underscore
'
;
import
{
insertText
,
getSelectedFragment
,
nodeMatchesSelector
}
from
'
./lib/utils/common_utils
'
;
import
{
placeholderImage
}
from
'
./lazy_loader
'
;
import
{
insertText
,
getSelectedFragment
,
nodeMatchesSelector
}
from
'
.
.
/lib/utils/common_utils
'
;
import
{
placeholderImage
}
from
'
.
.
/lazy_loader
'
;
const
gfmRules
=
{
// The filters referenced in lib/banzai/pipeline/gfm_pipeline.rb convert
...
...
app/assets/javascripts/behaviors/index.js
View file @
9fd89990
import
'
./autosize
'
;
import
'
./bind_in_out
'
;
import
'
./copy_as_gfm
'
;
import
'
./details_behavior
'
;
import
installGlEmojiElement
from
'
./gl_emoji
'
;
import
'
./quick_submit
'
;
...
...
app/assets/javascripts/main.js
View file @
9fd89990
...
...
@@ -46,7 +46,6 @@ import './commits';
import
'
./compare
'
;
import
'
./compare_autocomplete
'
;
import
'
./confirm_danger_modal
'
;
import
'
./copy_as_gfm
'
;
import
'
./copy_to_clipboard
'
;
import
Flash
,
{
removeFlashClickListener
}
from
'
./flash
'
;
import
'
./gl_dropdown
'
;
...
...
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