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 () {
if (this.currentPage() == 'cardDetailPage') {
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);
}
},