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
9fd89990
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
copy_as_gfm.js
app/assets/javascripts/behaviors/copy_as_gfm.js
+3
-2
index.js
app/assets/javascripts/behaviors/index.js
+1
-0
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 */
/* 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
_
from
'underscore'
;
import
{
insertText
,
getSelectedFragment
,
nodeMatchesSelector
}
from
'./lib/utils/common_utils'
;
import
{
insertText
,
getSelectedFragment
,
nodeMatchesSelector
}
from
'.
.
/lib/utils/common_utils'
;
import
{
placeholderImage
}
from
'./lazy_loader'
;
import
{
placeholderImage
}
from
'.
.
/lazy_loader'
;
const
gfmRules
=
{
const
gfmRules
=
{
// The filters referenced in lib/banzai/pipeline/gfm_pipeline.rb convert
// The filters referenced in lib/banzai/pipeline/gfm_pipeline.rb convert
...
...
app/assets/javascripts/behaviors/index.js
View file @
9fd89990
import
'./autosize'
;
import
'./autosize'
;
import
'./bind_in_out'
;
import
'./bind_in_out'
;
import
'./copy_as_gfm'
;
import
'./details_behavior'
;
import
'./details_behavior'
;
import
installGlEmojiElement
from
'./gl_emoji'
;
import
installGlEmojiElement
from
'./gl_emoji'
;
import
'./quick_submit'
;
import
'./quick_submit'
;
...
...
app/assets/javascripts/main.js
View file @
9fd89990
...
@@ -46,7 +46,6 @@ import './commits';
...
@@ -46,7 +46,6 @@ import './commits';
import
'./compare'
;
import
'./compare'
;
import
'./compare_autocomplete'
;
import
'./compare_autocomplete'
;
import
'./confirm_danger_modal'
;
import
'./confirm_danger_modal'
;
import
'./copy_as_gfm'
;
import
'./copy_to_clipboard'
;
import
'./copy_to_clipboard'
;
import
Flash
,
{
removeFlashClickListener
}
from
'./flash'
;
import
Flash
,
{
removeFlashClickListener
}
from
'./flash'
;
import
'./gl_dropdown'
;
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