changeset 733:a8389baaf4af

Added method to clear values.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 17 Apr 2015 15:16:50 +0200
parents fca4e738415e
children 2d482dfaa41a
files app/view/widget/base/ComboBox.js app/view/widget/base/DateField.js
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/widget/base/ComboBox.js	Fri Apr 17 14:13:28 2015 +0200
+++ b/app/view/widget/base/ComboBox.js	Fri Apr 17 15:16:50 2015 +0200
@@ -101,6 +101,10 @@
         return this.down('combobox').getValue();
     },
 
+    clearValue: function() {
+        this.down('combobox').clearValue();
+    },
+
     getName: function() {
         return this.name;
     },
--- a/app/view/widget/base/DateField.js	Fri Apr 17 14:13:28 2015 +0200
+++ b/app/view/widget/base/DateField.js	Fri Apr 17 15:16:50 2015 +0200
@@ -95,6 +95,10 @@
         return this.down('datefield').getValue();
     },
 
+    clearValue: function() {
+        this.down('datefield').clearValue();
+    },
+
     getName: function() {
         return this.name;
     },

http://lada.wald.intevation.org