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
72db22d3
Commit
72db22d3
authored
Mar 20, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send wall message with crtl+enter
parent
316cf619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
app/assets/javascripts/wall.js.coffee
app/assets/javascripts/wall.js.coffee
+4
-0
app/views/walls/show.html.haml
app/views/walls/show.html.haml
+1
-0
No files found.
app/assets/javascripts/wall.js.coffee
View file @
72db22d3
...
...
@@ -61,6 +61,10 @@
filename
=
$
(
this
).
val
().
replace
(
/^.*[\\\/]/
,
''
)
form
.
find
(
".js-attachment-filename"
).
text
(
filename
)
form
.
find
(
'.note_text'
).
keydown
(
e
)
->
if
e
.
ctrlKey
&&
e
.
keyCode
==
13
form
.
find
(
'.js-comment-button'
).
submit
()
form
.
show
()
renderNote
:
(
note
)
->
...
...
app/views/walls/show.html.haml
View file @
72db22d3
...
...
@@ -24,6 +24,7 @@
%span
.file_name.js-attachment-filename
File name...
=
f
.
file_field
:attachment
,
class:
"js-note-attachment-input hide"
.hint.pull-right
CTRL + Enter to send message
.clearfix
:javascript
...
...
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