fix authorize upgrade screen
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
*/
|
||||
function AuthorizeUpgradeController($scope, $window) {
|
||||
|
||||
//Add this method to the scope - this method will be called by the login dialog controller when the login is successful
|
||||
// then we'll handle the redirect.
|
||||
$scope.submit = function (event) {
|
||||
$scope.loginAndRedirect = function (event) {
|
||||
|
||||
var qry = $window.location.search.trimStart("?").split("&");
|
||||
var redir = _.find(qry, function(item) {
|
||||
@@ -24,7 +22,7 @@ function AuthorizeUpgradeController($scope, $window) {
|
||||
else {
|
||||
$window.location = "/";
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -45,9 +45,7 @@
|
||||
</head>
|
||||
<body id="umbracoMainPageBody" ng-controller="Umbraco.AuthorizeUpgradeController" class="login-only">
|
||||
|
||||
<div data-backdrop="false" class="modal hide login-overlay" aria-hidden="false" style="display: block;">
|
||||
<div ng-include="'views/common/dialogs/login.html'"></div>
|
||||
</div>
|
||||
<umb-login on-login="loginAndRedirect()"></umb-login>
|
||||
|
||||
<umb-notifications></umb-notifications>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user