From 189a6efb18ccc8275be3c2ff7ce40f0330465142 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Sun, 23 Mar 2014 20:31:14 +0100 Subject: [PATCH] editor: dialog forms - setting initial value for text input fields --- src/editor/views/dialog/dialog.js | 2 +- src/editor/views/dialog/templates/input.html | 2 +- src/editor/views/dialog/templates/textarea.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 %>

-- 2.20.1