From 73ac54c4e5651ffcd634c6150059f932c4e79485 Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 25 Jul 2017 16:46:20 -0400 Subject: [PATCH] Fixed bug deleting survey questions --- awx/ui/client/src/partials/survey-maker-modal.html | 8 ++++---- awx/ui/client/src/shared/directives.js | 5 ++++- awx/ui/grunt-tasks/watch.js | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/awx/ui/client/src/partials/survey-maker-modal.html b/awx/ui/client/src/partials/survey-maker-modal.html index b8f56cadcc..1be3cd5d39 100644 --- a/awx/ui/client/src/partials/survey-maker-modal.html +++ b/awx/ui/client/src/partials/survey-maker-modal.html @@ -22,7 +22,7 @@
{{name || "New Job Template"}}
SURVEY
-
+
@@ -56,17 +56,17 @@ {{question.question_description}}
- +  
- -
diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 445352fef3..64f542c1d8 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -804,6 +804,7 @@ function(ConfigurationUtils, i18n, $rootScope) { link: function(scope, element, attrs) { var delay = { show: 200, hide: 0 }, placement, + container, stateChangeWatcher; if (attrs.awTipPlacement) { placement = attrs.awTipPlacement; @@ -811,6 +812,8 @@ function(ConfigurationUtils, i18n, $rootScope) { placement = (attrs.placement !== undefined && attrs.placement !== null) ? attrs.placement : 'left'; } + container = attrs.container ? attrs.container : 'body'; + var template, custom_class; if (attrs.tooltipInnerClass || attrs.tooltipinnerclass) { custom_class = attrs.tooltipInnerClass || attrs.tooltipinnerclass; @@ -849,7 +852,7 @@ function(ConfigurationUtils, i18n, $rootScope) { delay: delay, html: true, title: attrs.awToolTip, - container: 'body', + container: container, trigger: 'hover', template: template }); diff --git a/awx/ui/grunt-tasks/watch.js b/awx/ui/grunt-tasks/watch.js index a9cf2a2fcc..e2a6c4e55c 100644 --- a/awx/ui/grunt-tasks/watch.js +++ b/awx/ui/grunt-tasks/watch.js @@ -6,7 +6,8 @@ module.exports = { partials: { files: [ 'client/lib/components/**/*.partial.html', - 'client/src/**/*.partial.html' + 'client/src/**/*.partial.html', + 'client/src/partials/*.html' ], tasks: ['newer:copy:partials'] },