pulling back on some overzealous html sanitizing

This commit is contained in:
John Mitchell 2015-04-30 10:56:40 -04:00
parent 63bfa07450
commit 4fb4975b44
2 changed files with 4 additions and 4 deletions

View File

@ -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'
];

View File

@ -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;