syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matte...@apache.org
Subject syncope git commit: SYNCOPE-918 fixes redirection to home page after user update
Date Mon, 08 Aug 2016 13:48:31 GMT
Repository: syncope
Updated Branches:
  refs/heads/master 62e9636ae -> 729de516b


SYNCOPE-918 fixes redirection to home page after user update


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/729de516
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/729de516
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/729de516

Branch: refs/heads/master
Commit: 729de516b9dd0c86fb1b481a37e6b11c0492abf0
Parents: 62e9636
Author: Matteo Di Carlo <matteo.dicarlo@tirasa.net>
Authored: Mon Aug 8 15:48:07 2016 +0200
Committer: Matteo Di Carlo <matteo.dicarlo@tirasa.net>
Committed: Mon Aug 8 15:48:07 2016 +0200

----------------------------------------------------------------------
 .../resources/META-INF/resources/app/index.html |  1 +
 .../app/js/controllers/TailController.js        | 28 ++++++++++++++++++++
 .../META-INF/resources/app/views/success.html   |  4 +--
 3 files changed, 31 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/729de516/client/enduser/src/main/resources/META-INF/resources/app/index.html
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/index.html b/client/enduser/src/main/resources/META-INF/resources/app/index.html
index 62f1fb5..7f0271f 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/index.html
+++ b/client/enduser/src/main/resources/META-INF/resources/app/index.html
@@ -97,6 +97,7 @@ under the License.
   <script src="js/controllers/LoginController.js"></script>
   <script src="js/controllers/LanguageController.js"></script>
   <script src="js/controllers/UserController.js"></script>
+  <script src="js/controllers/TailController.js"></script>
   <!--directives-->
   <script src="js/directives/dynamicPlainAttribute.js"></script>
   <script src="js/directives/dynamicDerivedAttribute.js"></script>

http://git-wip-us.apache.org/repos/asf/syncope/blob/729de516/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/TailController.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/TailController.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/TailController.js
new file mode 100644
index 0000000..69de101
--- /dev/null
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/controllers/TailController.js
@@ -0,0 +1,28 @@
+/* 
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+'use strict';
+
+angular.module("self")
+        .controller("TailController", 
+                function ($scope, $location) {
+                  $scope.redirect = function () {
+                    $location.path('/self');
+                  };
+                });

http://git-wip-us.apache.org/repos/asf/syncope/blob/729de516/client/enduser/src/main/resources/META-INF/resources/app/views/success.html
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/views/success.html b/client/enduser/src/main/resources/META-INF/resources/app/views/success.html
index 1584973..bcb2331 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/views/success.html
+++ b/client/enduser/src/main/resources/META-INF/resources/app/views/success.html
@@ -20,12 +20,12 @@ under the License.
 <div ng-cloak class="container">
   <div class="login-container" style="box-sizing: border-box; ">
     <div id="form-container" class="col-md-6 col-md-offset-3" style="box-sizing: border-box;
background-color: #F7F7F7;">
-      <div>
+      <div ng-controller="TailController">
         <div class="page-header" style="text-align: left; font-weight: 700;">     
    
           <span>{{'USER'| translate}} <b> {{currentUser}}</b> {{currentOp|
translate}}</span>
         </div>
         <span>
-          <a href="javascript:void(0);" class="btn btn-link" ng-click="logout()">{{'GOBACKHOME'|
translate}}</a>
+          <a href="javascript:void(0);" class="btn btn-link" ng-click="redirect()">{{'GOBACKHOME'|
translate}}</a>
         </span> 
       </div>
     </div>


Mime
View raw message