fix issue with auto-validation checkbox and send wrong payload
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/fb45fe12 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/fb45fe12 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/fb45fe12 Branch: refs/heads/master Commit: fb45fe121a962783f029d0bce6e94a7f734c3beb Parents: 428fb4b Author: Dakshika Jayathilaka <[email protected]> Authored: Thu Nov 27 12:05:02 2014 +0530 Committer: Dakshika Jayathilaka <[email protected]> Committed: Thu Nov 27 12:05:02 2014 +0530 ---------------------------------------------------------------------- .../org.apache.stratos.manager.console/console/configure_form.jag | 3 ++- .../console/themes/theme0/partials/configure_form.hbs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/fb45fe12/components/org.apache.stratos.manager.console/console/configure_form.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/configure_form.jag b/components/org.apache.stratos.manager.console/console/configure_form.jag index 04b398c..83e7892 100644 --- a/components/org.apache.stratos.manager.console/console/configure_form.jag +++ b/components/org.apache.stratos.manager.console/console/configure_form.jag @@ -118,6 +118,7 @@ switch (formtype) { } } + //TODO need to add listing with corrected JSON } break; @@ -152,7 +153,7 @@ switch (formtype) { if(list_data.cartridge.length == 0 ){ list_data = null; } - + //TODO need to add listing with corrected JSON } break; http://git-wip-us.apache.org/repos/asf/stratos/blob/fb45fe12/components/org.apache.stratos.manager.console/console/themes/theme0/partials/configure_form.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/configure_form.hbs b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/configure_form.hbs index 0afbd65..af25738 100644 --- a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/configure_form.hbs +++ b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/configure_form.hbs @@ -332,6 +332,9 @@ $('textarea#jsoneditor').val(JSON.stringify(editor.getValue(), null, '\t')); } + }else if(rawEditValidate){ + editor.setValue(rawEditValidate); + editor.onChange(); } });
