- Timestamp:
- 04/27/16 16:48:35 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/hubs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/hubs/calendarhubber.js
r13795 r13805 14 14 vm.alertMessage = "No alerts"; 15 15 vm.currentcal = []; 16 $scope.permission = false; 16 $scope.permissionview = false; 17 $scope.resaddview = false; 17 18 vm.selectedEventId = -1; 18 19 vm.groups = []; … … 100 101 $scope.$watch("treeview.currentNode", function (newValue, oldValue) { 101 102 $scope.currentcal = []; 103 $scope.resaddview = false; 102 104 $(".selected.ng-binding").addClass('loaded'); 103 105 $scope.selectedEventId = -1; … … 112 114 $timeout(function () { 113 115 refreshPermissions(); 116 114 117 $scope.currentcal = $scope.treeview.currentNode.calendar; 115 118 }, 0); 116 119 117 120 } 118 } 119 120 }); 121 $scope.refreshAdds(); 122 } 123 124 }); 125 } 126 $scope.refreshAdds = function() { 127 for (var i = 0; i < $scope.clients.length; i++) { 128 $scope.clients[i].add = false; 129 for (var j = 0; j < $scope.treeview.currentNode.children.length; j++) { 130 if ($scope.clients[i].Id === $scope.treeview.currentNode.children[j].Id) 131 $scope.clients[i].add = true; 132 } 133 } 121 134 } 122 135 function refreshPermissions() { … … 650 663 }; 651 664 665 $scope.menuchange = function (i) { 666 switch(i) { 667 case 0: 668 $scope.permissionview = false; 669 $scope.resaddview = false; 670 break; 671 case 1: 672 $scope.permissionview = true; 673 $scope.resaddview = false; 674 break; 675 case 2: 676 $scope.permissionview = false; 677 $scope.resaddview = true; 678 break; 679 } 680 } 681 652 682 653 683 -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/wwwroot/js/hubs/userinfohubber.js
r13754 r13805 1 function resetPass(a){hubber.server.resetPassword(a)}var hubber=$.connection.userInfoHub;$(function(){ $.connection.hub.logging=!0;var a=document.getElementById("userId").innerHTML;console.log(a),$.connection.hub.qs={userid:a},$.connection.hub.start(),hubber.client.showNewPass=function(a){$("#inppassreset").html("<label class=' control-label' style='text-align:left'>New password: "+a+"</label>")}});1 function resetPass(a){hubber.server.resetPassword(a)}var hubber=$.connection.userInfoHub;$(function(){var a=document.getElementById("userId").innerHTML;console.log(a),$.connection.hub.qs={userid:a},$.connection.hub.start(),hubber.client.showNewPass=function(a){$("#inppassreset").html("<label class=' control-label' style='text-align:left'>An email has been sent to the user containing the new password</label>")}});
Note: See TracChangeset
for help on using the changeset viewer.