From bbbd0891ffac5bb66b7ba23acb7831e985f63bea Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Sat, 12 Mar 2016 21:16:34 +0800 Subject: [PATCH] * put the hint of preAndNext shortcut key on the back of title. --- module/common/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index c05f78ae83..2cb27344a6 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -822,7 +822,7 @@ class commonModel extends model { $id = (isset($_SESSION['testcaseOnlyCondition']) and !$_SESSION['testcaseOnlyCondition'] and $app->getModuleName() == 'testcase' and isset($preAndNext->pre->case)) ? 'case' : 'id'; $title = isset($preAndNext->pre->title) ? $preAndNext->pre->title : $preAndNext->pre->name; - $title = $lang->preShortcutKey . '#' . $preAndNext->pre->$id . ' ' . $title; + $title = '#' . $preAndNext->pre->$id . ' ' . $title . ' ' . $lang->preShortcutKey; $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->pre->$id) : inLink('view', "ID={$preAndNext->pre->$id}"); echo html::a($link, '', '', "id='pre' class='btn' title='{$title}'"); } @@ -830,7 +830,7 @@ class commonModel extends model { $id = (isset($_SESSION['testcaseOnlyCondition']) and !$_SESSION['testcaseOnlyCondition'] and $app->getModuleName() == 'testcase' and isset($preAndNext->next->case)) ? 'case' : 'id'; $title = isset($preAndNext->next->title) ? $preAndNext->next->title : $preAndNext->next->name; - $title = $lang->nextShortcutKey . '#' . $preAndNext->next->$id . ' ' . $title; + $title = '#' . $preAndNext->next->$id . ' ' . $title . ' ' . $lang->nextShortcutKey; $link = $linkTemplate ? sprintf($linkTemplate, $preAndNext->next->$id) : inLink('view', "ID={$preAndNext->next->$id}"); echo html::a($link, '', '', "id='next' class='btn' title='$title'"); }