mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-04 16:01:51 -05:00
don't trim newlines from custom inventory scripts; they may be relevant
see: #5387 angular defaults ngTrim to `true` for <textarea>: https://docs.angularjs.org/api/ng/directive/textarea override this for the custom inventory script form
This commit is contained in:
@@ -1014,6 +1014,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
html += (field.ngDisabled) ? this.attr(field, 'ngDisabled'): "";
|
||||
html += (field.required) ? "required " : "";
|
||||
html += (field.ngRequired) ? "ng-required=\"" + field.ngRequired +"\"" : "";
|
||||
html += (field.ngTrim !== undefined) ? "ng-trim=\"" + field.ngTrim +"\"" : "";
|
||||
html += (field.readonly || field.showonly) ? "readonly " : "";
|
||||
html += (field.awDropFile) ? "aw-drop-file " : "";
|
||||
if(field.awRequiredWhen) {
|
||||
|
||||
Reference in New Issue
Block a user