From 4215a19cee4886286fe4e18ddf25b9172e1f168e Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 7 Aug 2014 11:31:18 +1200 Subject: [PATCH] Fix missing comma's --- templates/ValidationScript.ss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/ValidationScript.ss b/templates/ValidationScript.ss index bec517d..3a0069b 100644 --- a/templates/ValidationScript.ss +++ b/templates/ValidationScript.ss @@ -1,8 +1,8 @@ (function($) { $(document).ready(function() { var messages = {<% loop $Fields %><% if $ErrorMessage && not $SetsOwnError %><% if ClassName == EditableCheckboxGroupField %> - '{$Name.JS}[]': '{$ErrorMessage.JS}'<% else %> - '{$Name.JS}': '{$ErrorMessage.JS}',<% end_if %><% end_if %><% end_loop %> + '{$Name.JS}[]': '{$ErrorMessage.JS}'<% if not Last %>,<% end_if %><% else %> + '{$Name.JS}': '{$ErrorMessage.JS}'<% if not Last %>,<% end_if %><% end_if %><% end_if %><% end_loop %> }; $("#Form_Form").validate({