summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-04-05 13:23:43 +0100
committerPhil Hughes <me@iamphill.com>2016-04-14 10:28:05 +0100
commit6e93bd56f0147929006daba6410aa5640403b2c7 (patch)
treeb9516c34c88d02f1c2248b8db93609e87cace774
parent3de09d1475db3d23f839991e57d16e00bff07cb4 (diff)
downloadgitlab-ce-6e93bd56f0147929006daba6410aa5640403b2c7.tar.gz
Placeholder on milestone form
Updated JS spec to include gl_form
-rw-r--r--app/views/projects/milestones/_form.html.haml2
-rw-r--r--spec/javascripts/notes_spec.js.coffee1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/milestones/_form.html.haml b/app/views/projects/milestones/_form.html.haml
index 06b21754797..687222fa92f 100644
--- a/app/views/projects/milestones/_form.html.haml
+++ b/app/views/projects/milestones/_form.html.haml
@@ -10,7 +10,7 @@
= f.label :description, "Description", class: "control-label"
.col-sm-10
= render layout: 'projects/md_preview', locals: { preview_class: "md-preview" } do
- = render 'projects/zen', f: f, attr: :description, classes: 'note-textarea'
+ = render 'projects/zen', f: f, attr: :description, classes: 'note-textarea', placeholder: 'Write milestone description...'
= render 'projects/notes/hints'
.clearfix
.error-alert
diff --git a/spec/javascripts/notes_spec.js.coffee b/spec/javascripts/notes_spec.js.coffee
index 050b6e362c6..dd160e821b3 100644
--- a/spec/javascripts/notes_spec.js.coffee
+++ b/spec/javascripts/notes_spec.js.coffee
@@ -1,4 +1,5 @@
#= require notes
+#= require gl_form
window.gon = {}
window.disableButtonIfEmptyField = -> null