Added esc handling
This commit is contained in:
parent
b024186a5c
commit
191d7514d8
@ -336,6 +336,10 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$on('esc_no_more', function () {
|
||||
$location.url('/im');
|
||||
});
|
||||
|
||||
|
||||
$scope.isLoggedIn = true;
|
||||
$scope.isEmpty = {};
|
||||
@ -1145,6 +1149,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
}
|
||||
|
||||
function showEmptyHistory () {
|
||||
safeReplaceObject($scope.historyPeer, {});
|
||||
safeReplaceObject($scope.state, {notSelected: true});
|
||||
peerHistory = false;
|
||||
hasMore = false;
|
||||
|
@ -459,6 +459,9 @@ angular.module('myApp.directives', ['myApp.filters'])
|
||||
else if (searchField.value) {
|
||||
$(searchClear).trigger('click');
|
||||
}
|
||||
else {
|
||||
$scope.$emit('esc_no_more');
|
||||
}
|
||||
return cancelEvent(e);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user