From 1d3d30958260344a323e33160f6c0afe1c52a8d0 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 25 Jun 2009 06:55:42 +0000 Subject: [PATCH] BUGFIX: fixed issue with rule based validation trying to save the default rule --- css/FieldEditor.css | 2 +- javascript/UserForm.js | 4 +--- templates/EditableFormField.ss | 11 +++++++++-- templates/Includes/CustomRule.ss | 8 ++++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/css/FieldEditor.css b/css/FieldEditor.css index 7ca4647..b87be96 100755 --- a/css/FieldEditor.css +++ b/css/FieldEditor.css @@ -195,7 +195,7 @@ } /* HIDE */ - #Fields_fields li.EditableFormField div.hidden { + #Fields_fields li.EditableFormField .hidden { display: none; } diff --git a/javascript/UserForm.js b/javascript/UserForm.js index d760ad0..f088233 100644 --- a/javascript/UserForm.js +++ b/javascript/UserForm.js @@ -59,9 +59,7 @@ //update the internal lists var name = $("#Fields_fields li.EditableFormField:last").attr("id").split(' '); - $("#Fields_fields select.fieldOption").each(function(i, domElement) { - $(domElement).append(""); - }); + $("#Fields_fields select.fieldOption").append(""); }, // error creating new field diff --git a/templates/EditableFormField.ss b/templates/EditableFormField.ss index 1fef3b6..a6254dc 100755 --- a/templates/EditableFormField.ss +++ b/templates/EditableFormField.ss @@ -91,7 +91,14 @@ @@ -120,5 +127,5 @@ - + \ No newline at end of file diff --git a/templates/Includes/CustomRule.ss b/templates/Includes/CustomRule.ss index 87872d0..22b6be9 100644 --- a/templates/Includes/CustomRule.ss +++ b/templates/Includes/CustomRule.ss @@ -1,10 +1,10 @@ - - <% control Fields %> @@ -12,7 +12,7 @@ - @@ -20,6 +20,6 @@ - + <% _t('DELETE', 'Delete') %>