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
Léo-Paul Géneau
gitlab-ce
Commits
118a42ce
Commit
118a42ce
authored
May 26, 2016
by
Jacob Schatz
Committed by
Phil Hughes
Jun 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove console.log
parent
4ba2632c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/lib/text_utility.js.coffee
app/assets/javascripts/lib/text_utility.js.coffee
+5
-4
No files found.
app/assets/javascripts/lib/text_utility.js.coffee
View file @
118a42ce
...
...
@@ -32,8 +32,11 @@
selObj
=
window
.
getSelection
()
selRange
=
selObj
.
getRangeAt
(
0
)
text
=
$textArea
.
val
()
lineBreak
=
'
\n
'
if
textArea
.
selectionStart
>
0
console
.
log
(
textArea
.
selectionStart
,
lineBreak
)
if
textArea
.
selectionStart
>
0
lineBreak
=
'
\n
'
else
lineBreak
=
''
replaceWith
=
@
replaceRange
(
text
,
textArea
.
selectionStart
,
...
...
@@ -82,7 +85,6 @@
$thisTextarea
.
val
(
latestUndo
.
newVal
)
gl
.
text
.
addListeners
=
()
->
console
.
log
(
'addListeners'
)
self
=
@
$
(
'.js-md'
).
on
'click'
,
->
$this
=
$
(
@
)
...
...
@@ -119,7 +121,6 @@
gl
.
text
.
_previousState
,
$thisTextarea
.
val
()
)
gl
.
text
.
_previousState
=
$thisTextarea
.
val
()
gl
.
text
.
removeListeners
=
()
->
...
...
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