diff --git a/awx/ui/client/src/inventory-scripts/add/add.controller.js b/awx/ui/client/src/inventory-scripts/add/add.controller.js index 66c54d49df..e005515215 100644 --- a/awx/ui/client/src/inventory-scripts/add/add.controller.js +++ b/awx/ui/client/src/inventory-scripts/add/add.controller.js @@ -48,7 +48,7 @@ export default organization: scope.organization, script: scope.script }) - .success(function (data) { + .success(function () { $state.go('inventoryScripts', {}, {reload: true}); Wait('stop'); }) diff --git a/awx/ui/client/src/job-detail/host-event/host-event.controller.js b/awx/ui/client/src/job-detail/host-event/host-event.controller.js index 8b97a11765..280c7256a6 100644 --- a/awx/ui/client/src/job-detail/host-event/host-event.controller.js +++ b/awx/ui/client/src/job-detail/host-event/host-event.controller.js @@ -17,10 +17,10 @@ if (typeof value === 'object'){return false;} else {return true;} }; - + //var CodeMirror; var codeMirror = function(el, json){ var container = $(el)[0]; - var editor = CodeMirror.fromTextArea(container, { + var editor = codeMirror.fromTextArea(container, { lineNumbers: true, mode: {name: "javascript", json: true} });