Skip to content

Commit 7a9d155

Browse files
committed
security version bump: AngularJS (AngularJS v1.8.3)
1 parent 7ca45cb commit 7a9d155

6 files changed

Lines changed: 1160 additions & 524 deletions

File tree

src/IdentityManager2/Assets/Scripts/App/ttIdmApp.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
(function (angular) {
66
const app = angular.module("ttIdmApp", ["ngRoute", "ttIdm", "ttIdmUI", "ttIdmUsers", "ttIdmRoles"]);
7-
function config(PathBase, $routeProvider) {
7+
function config(PathBase, $routeProvider, $locationProvider) {
8+
// Configure hash prefix to empty string for compatibility with Angular 1.3.x URLs
9+
$locationProvider.hashPrefix('');
10+
811
$routeProvider
912
.when("/", {
1013
templateUrl: PathBase + "/assets/Templates.home.html"
@@ -16,7 +19,7 @@
1619
redirectTo: "/"
1720
});
1821
}
19-
config.$inject = ["PathBase", "$routeProvider"];
22+
config.$inject = ["PathBase", "$routeProvider", "$locationProvider"];
2023
app.config(config);
2124

2225
function LayoutCtrl($rootScope, PathBase, idmApi, $location, $window, idmErrorService, ShowLoginButton,

src/IdentityManager2/Assets/Scripts/App/ttIdmUI.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@
135135
elem.id = scope.id.trim();
136136
elem.find(".btn-primary.confirm").on("click", function () {
137137
elem.trigger("confirm");
138+
$(elem).modal('hide');
139+
});
140+
elem.find(".btn-default").on("click", function () {
141+
$(elem).modal('hide');
138142
});
139143
}
140144
};

src/IdentityManager2/Assets/Scripts/Bundle.js

Lines changed: 372 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/IdentityManager2/Assets/Scripts/Libs/angular-route.min.js

Lines changed: 14 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)