bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-01-24 06:21:15 +03:00
parent 408e4c68aa
commit 4c387d328f
2 changed files with 6 additions and 1 deletions

View File

@ -210,7 +210,11 @@ var StatusBarActions = actions.Actions({
reset_on_done: false,
})
.on('edit-commit', function(_, text){
that.focusRibbon(text == '*' ? that.base : parseInt(text)-1)
var i = parseInt(text)
i = i >= 1 ? i-1
: i == null ? 'current'
: i
that.focusRibbon(text == '*' ? that.base : i)
})
.focus(function(){
$(this).selectText()

View File

@ -591,6 +591,7 @@ var DialogsActions = actions.Actions({
return res
})],
listDialogs: ['Interface/Dialog/Dialog list...',
makeUIDialog(function(){
var actions = this