* finish task #2686.
This commit is contained in:
@@ -74,6 +74,7 @@ $lang->tutorialConfirm = 'You are using tutorial. Do you want to exit right now
|
||||
|
||||
$lang->preShortcutKey = '[Shortcut:←]';
|
||||
$lang->nextShortcutKey = '[Shortcut:→]';
|
||||
$lang->backShortcutKey = '[Shortcut:Alt+↑]';
|
||||
|
||||
$lang->select = 'Select';
|
||||
$lang->selectAll = 'Select All';
|
||||
|
||||
@@ -74,6 +74,7 @@ $lang->tutorialConfirm = '检测到你尚未退出新手教程模式,是否现
|
||||
|
||||
$lang->preShortcutKey = '[快捷键:←]';
|
||||
$lang->nextShortcutKey = '[快捷键:→]';
|
||||
$lang->backShortcutKey = '[快捷键:Alt+↑]';
|
||||
|
||||
$lang->select = '选择';
|
||||
$lang->selectAll = '全选';
|
||||
|
||||
@@ -828,7 +828,8 @@ class commonModel extends model
|
||||
global $lang, $app;
|
||||
if(isonlybody()) return false;
|
||||
|
||||
echo html::a($backLink, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i>', '', "class='btn' title={$lang->goback}");
|
||||
$title = $lang->goback . $lang->backShortcutKey;
|
||||
echo html::a($backLink, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i>', '', "id='back' class='btn' title={$title}");
|
||||
|
||||
if(isset($preAndNext->pre) and $preAndNext->pre)
|
||||
{
|
||||
|
||||
@@ -1684,6 +1684,13 @@ function initHotKey()
|
||||
return false;
|
||||
});
|
||||
|
||||
/* Alt+up, go back to the previous page. */
|
||||
$(document).bind('keydown', 'Alt+up', function(evt)
|
||||
{
|
||||
backLink = ($('#back').attr("href"));
|
||||
if(typeof(backLink) != 'undefined') location.href = backLink;
|
||||
});
|
||||
|
||||
/* left, go to pre object. */
|
||||
$(document).bind('keydown', 'left', function(evt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user