Commits

Ernesto Menéndez committed 57db438

apps.admin: editar usuario en ventana

  • Participants
  • Parent commits bed43b0

Comments (0)

Files changed (2)

File nxweb/apps/admin/html/js/user-controller.js

     }
 
     $scope.showCreateUserWindow = function() {
-        $("#window").data("kendoWindow").center().open().unbind('close').bind('close', refresh_users);
+        $("#window").data("kendoWindow").refresh("/window.html#/user").center().open().unbind('close').bind('close', refresh_users);
+    }
+
+    $scope.showEditUserWindow = function(uid_a) {
+        $("#window").data("kendoWindow").refresh("/window.html#/user/"+uid_a).center().open().unbind('close').bind('close', refresh_users);
     }
 
     refresh_users();

File nxweb/apps/admin/html/partials/user-list.html

                             {{data['groups'].join()}}
                         </td>
                         <td>
-                            <a ng-href="#/user/{{key}}" class="k-button k-button-icontext k-grid-edit">
+                            <!-- <a ng-href="#/user/{{key}}" class="k-button k-button-icontext k-grid-edit"> -->
+                            <a ng-click="showEditUserWindow(key)" class="k-button k-button-icontext k-grid-edit">
                                 <span class="k-icon k-edit"></span>
                                 Edit
                             </a>
 <script type="text/javascript">
     $(document).ready(function() {
         $("#window").kendoWindow({
-            content: "/window.html#/user",
             iframe: true,
             modal: true,
             height: "400px",