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.isLoggedIn = true;
|
||||||
$scope.isEmpty = {};
|
$scope.isEmpty = {};
|
||||||
@ -1145,6 +1149,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showEmptyHistory () {
|
function showEmptyHistory () {
|
||||||
|
safeReplaceObject($scope.historyPeer, {});
|
||||||
safeReplaceObject($scope.state, {notSelected: true});
|
safeReplaceObject($scope.state, {notSelected: true});
|
||||||
peerHistory = false;
|
peerHistory = false;
|
||||||
hasMore = false;
|
hasMore = false;
|
||||||
|
@ -459,6 +459,9 @@ angular.module('myApp.directives', ['myApp.filters'])
|
|||||||
else if (searchField.value) {
|
else if (searchField.value) {
|
||||||
$(searchClear).trigger('click');
|
$(searchClear).trigger('click');
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$scope.$emit('esc_no_more');
|
||||||
|
}
|
||||||
return cancelEvent(e);
|
return cancelEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user