mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
pulling back on some overzealous html sanitizing
This commit is contained in:
parent
63bfa07450
commit
4fb4975b44
@ -16,7 +16,7 @@
|
||||
import 'tower/job-templates/main';
|
||||
|
||||
export function InventoriesList($scope, $rootScope, $location, $log,
|
||||
$routeParams, $compile, $filter, Rest, Alert, InventoryList, generateList,
|
||||
$routeParams, $compile, $filter, sanitizeFilter, Rest, Alert, InventoryList, generateList,
|
||||
LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
|
||||
ClearScope, ProcessErrors, GetBasePath, Wait, Stream,
|
||||
EditInventoryProperties, Find, Empty, LogViewer) {
|
||||
@ -346,7 +346,7 @@ export function InventoriesList($scope, $rootScope, $location, $log,
|
||||
|
||||
Prompt({
|
||||
hdr: 'Delete',
|
||||
body: '<div class=\"alert alert-info\">Delete inventory ' + name + '?</div>',
|
||||
body: '<div class=\"alert alert-info\">Delete inventory ' + $filter('sanitize')(name) + '?</div>',
|
||||
action: action
|
||||
});
|
||||
};
|
||||
@ -370,7 +370,7 @@ export function InventoriesList($scope, $rootScope, $location, $log,
|
||||
};
|
||||
}
|
||||
|
||||
InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'Rest', 'Alert', 'InventoryList', 'generateList',
|
||||
InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'sanitizeFilter', 'Rest', 'Alert', 'InventoryList', 'generateList',
|
||||
'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope', 'ProcessErrors',
|
||||
'GetBasePath', 'Wait', 'Stream', 'EditInventoryProperties', 'Find', 'Empty', 'LogViewer'
|
||||
];
|
||||
|
||||
@ -36,7 +36,7 @@ angular.module('PromptDialog', ['Utilities', 'sanitizeFilter'])
|
||||
scope = dialog.scope(), cls, local_backdrop;
|
||||
|
||||
scope.promptHeader = params.hdr;
|
||||
scope.promptBody = $filter('sanitize')(params.body);
|
||||
scope.promptBody = params.body;
|
||||
scope.promptAction = params.action;
|
||||
|
||||
local_backdrop = (params.backdrop === undefined) ? "static" : params.backdrop;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user