diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d6f894
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# vim
+[._]*.s[a-w][a-z]
+[._]s[a-w][a-z]
+*.un~
+Session.vim
+.netrwhist
+*~
diff --git a/lib/business-rules/actions-builder.js b/lib/business-rules/actions-builder.js
index d26c951..0202d9d 100644
--- a/lib/business-rules/actions-builder.js
+++ b/lib/business-rules/actions-builder.js
@@ -47,6 +47,9 @@
var params = [actionObj];
var field;
while(field = params.shift()) {
+ if ('params' in field) {
+ field.value = field.params[field.name];
+ }
actionDiv.find(":input[name='" + field.name + "']").val(field.value).change();
if(field.params) params = params.concat(field.params);
}
diff --git a/lib/business-rules/conditions-builder.js b/lib/business-rules/conditions-builder.js
index e788806..3352dcf 100755
--- a/lib/business-rules/conditions-builder.js
+++ b/lib/business-rules/conditions-builder.js
@@ -214,11 +214,15 @@
break;
case "text":
$this.after($(""));
- $this.after($("", {"type": "text", "class": "value textInput"}));
+ $this.after($("", {"class": "value textInput"}));
break;
case "numeric":
$this.after($(""));
- $this.after($("", {"type": "text", "class": "value numberInput"}));
+ $this.after($("", {"type": "number", "class": "value numberInput"}));
+ break;
+ case "date":
+ $this.after($(""));
+ $this.after($("", {"type": "date", "class": "value dateInput"}));
break;
case "select":
var select = $("