|
|
@ -396,7 +396,7 @@ angular.module('myApp.controllers', []) |
|
|
|
jump = 0; |
|
|
|
jump = 0; |
|
|
|
|
|
|
|
|
|
|
|
function applyDialogSelect (newPeer) { |
|
|
|
function applyDialogSelect (newPeer) { |
|
|
|
selectedCancel(); |
|
|
|
selectedCancel(true); |
|
|
|
newPeer = newPeer || $scope.curDialog.peer || ''; |
|
|
|
newPeer = newPeer || $scope.curDialog.peer || ''; |
|
|
|
|
|
|
|
|
|
|
|
peerID = AppPeersManager.getPeerID(newPeer); |
|
|
|
peerID = AppPeersManager.getPeerID(newPeer); |
|
|
@ -542,12 +542,14 @@ angular.module('myApp.controllers', []) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function selectedCancel () { |
|
|
|
function selectedCancel (noBroadcast) { |
|
|
|
$scope.selectedMsgs = {}; |
|
|
|
$scope.selectedMsgs = {}; |
|
|
|
$scope.selectedCount = 0; |
|
|
|
$scope.selectedCount = 0; |
|
|
|
$scope.selectActions = false; |
|
|
|
$scope.selectActions = false; |
|
|
|
|
|
|
|
if (!noBroadcast) { |
|
|
|
$scope.$broadcast('ui_panel_update'); |
|
|
|
$scope.$broadcast('ui_panel_update'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function selectedFlush () { |
|
|
|
function selectedFlush () { |
|
|
|
if (safeConfirm('Are you sure? This can not be undone!') !== true) { |
|
|
|
if (safeConfirm('Are you sure? This can not be undone!') !== true) { |
|
|
|