1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:19:02 +01:00

Hide current selected card (in *wide view) hitting ‘esc’

This commit is contained in:
Giulio Cesare Solaroli 2015-03-03 23:29:37 +01:00
parent bd95252c80
commit e47cc7f617

View File

@ -1587,6 +1587,8 @@ console.log("THE BROWSER IS OFFLINE");
exitCurrentSelection: function () { exitCurrentSelection: function () {
if (this.currentPage() == 'cardDetailPage') { if (this.currentPage() == 'cardDetailPage') {
MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'goBackToMainPage', {'reference':this.selectedCardInfo()['reference']}); MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'goBackToMainPage', {'reference':this.selectedCardInfo()['reference']});
} else if (this.currentPage() == 'mainPage') {
MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'selectCard', null, true);
} }
}, },