mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
pulling back on some overzealous html sanitizing
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
import 'tower/job-templates/main';
|
import 'tower/job-templates/main';
|
||||||
|
|
||||||
export function InventoriesList($scope, $rootScope, $location, $log,
|
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,
|
LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
|
||||||
ClearScope, ProcessErrors, GetBasePath, Wait, Stream,
|
ClearScope, ProcessErrors, GetBasePath, Wait, Stream,
|
||||||
EditInventoryProperties, Find, Empty, LogViewer) {
|
EditInventoryProperties, Find, Empty, LogViewer) {
|
||||||
@@ -346,7 +346,7 @@ export function InventoriesList($scope, $rootScope, $location, $log,
|
|||||||
|
|
||||||
Prompt({
|
Prompt({
|
||||||
hdr: 'Delete',
|
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
|
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',
|
'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope', 'ProcessErrors',
|
||||||
'GetBasePath', 'Wait', 'Stream', 'EditInventoryProperties', 'Find', 'Empty', 'LogViewer'
|
'GetBasePath', 'Wait', 'Stream', 'EditInventoryProperties', 'Find', 'Empty', 'LogViewer'
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ angular.module('PromptDialog', ['Utilities', 'sanitizeFilter'])
|
|||||||
scope = dialog.scope(), cls, local_backdrop;
|
scope = dialog.scope(), cls, local_backdrop;
|
||||||
|
|
||||||
scope.promptHeader = params.hdr;
|
scope.promptHeader = params.hdr;
|
||||||
scope.promptBody = $filter('sanitize')(params.body);
|
scope.promptBody = params.body;
|
||||||
scope.promptAction = params.action;
|
scope.promptAction = params.action;
|
||||||
|
|
||||||
local_backdrop = (params.backdrop === undefined) ? "static" : params.backdrop;
|
local_backdrop = (params.backdrop === undefined) ? "static" : params.backdrop;
|
||||||
|
|||||||
Reference in New Issue
Block a user