AC-419 resolved Ask vs. Clear buttons accidentally allowing user to wipe out 'ASK value when it is expected user will be prompted for password at job run time.

This commit is contained in:
chouseknecht 2013-09-06 18:03:50 -04:00
parent 216c488ce7
commit a035dd85eb

View File

@ -408,7 +408,9 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies'])
if (field.clear) {
html += "<span class=\"input-group-btn\"><button type=\"button\" class=\"btn btn-default\" ng-click=\"clear('" + fld + "','" + field.associated + "')\" " +
"aw-tool-tip=\"Clear " + field.label + "\" id=\"" + fld + "-clear-btn\"><i class=\"icon-undo\"></i></button>\n";
"aw-tool-tip=\"Clear " + field.label + "\" id=\"" + fld + "-clear-btn\" ";
html += (field.ask) ? "ng-disabled=\"" + fld + "_ask\" " : "";
html += " ><i class=\"icon-undo\"></i></button>\n";
if (field.ask) {
html += "<label class=\"checkbox-inline ask-checkbox\"><input type=\"checkbox\" ng-model=\"" +
fld + "_ask\" ng-change=\"ask('" + fld + "','" + field.associated + "')\" > Ask at runtime?</label>";