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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
15c682fc
Commit
15c682fc
authored
Aug 04, 2014
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable 'Save changes' button if input is empty, fixes #6351
parent
d4f5af82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+3
-1
app/views/projects/notes/_note.html.haml
app/views/projects/notes/_note.html.haml
+2
-2
No files found.
app/assets/javascripts/notes.js.coffee
View file @
15c682fc
...
...
@@ -321,7 +321,9 @@ class Notes
GitLab
.
GfmAutoComplete
.
setup
()
form
=
note
.
find
(
".note-edit-form"
)
form
.
show
()
form
.
find
(
"textarea"
).
focus
()
textarea
=
form
.
find
(
"textarea"
)
textarea
.
focus
()
disableButtonIfEmptyField
textarea
,
form
.
find
(
".js-comment-button"
)
###
Called in response to clicking the edit note link
...
...
app/views/projects/notes/_note.html.haml
View file @
15c682fc
...
...
@@ -38,10 +38,10 @@
=
f
.
text_area
:note
,
class:
'note_text js-note-text js-gfm-input turn-on'
.form-actions.clearfix
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary btn-save"
=
f
.
submit
'Save changes'
,
class:
"btn btn-primary btn-save
js-comment-button
"
.note-form-option
%a
.choose-btn.btn.
btn-small.
js-choose-note-attachment-button
%a
.choose-btn.btn.js-choose-note-attachment-button
%i
.icon-paper-clip
%span
Choose File ...
...
...
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