From: Aleksander Ɓukasz Date: Sun, 23 Mar 2014 19:31:14 +0000 (+0100) Subject: editor: dialog forms - setting initial value for text input fields X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/189a6efb18ccc8275be3c2ff7ce40f0330465142 editor: dialog forms - setting initial value for text input fields --- diff --git a/src/editor/views/dialog/dialog.js b/src/editor/views/dialog/dialog.js index 0d4bbd4..0579464 100644 --- a/src/editor/views/dialog/dialog.js +++ b/src/editor/views/dialog/dialog.js @@ -38,7 +38,7 @@ define(function(require) { throw new Error('Field type {type} not recognized.'.replace('{type}', field.type)); } body.append( - _.template(template)(_.extend({description: ''}, field)) + _.template(template)(_.extend({description: '', initialValue: ''}, field)) ); }); diff --git a/src/editor/views/dialog/templates/input.html b/src/editor/views/dialog/templates/input.html index f60f2f6..1600d87 100644 --- a/src/editor/views/dialog/templates/input.html +++ b/src/editor/views/dialog/templates/input.html @@ -3,7 +3,7 @@ <%= label %>:
- + <%= description %>
diff --git a/src/editor/views/dialog/templates/textarea.html b/src/editor/views/dialog/templates/textarea.html index 50b7c50..839e7f4 100644 --- a/src/editor/views/dialog/templates/textarea.html +++ b/src/editor/views/dialog/templates/textarea.html @@ -1,5 +1,5 @@

- + <%= description %>