From 94b013cdb2852e4dd7579cbe5dd2230ea5747bc5 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 6 Jun 2016 14:05:06 +0800 Subject: [PATCH] * finish task #2594. --- module/bug/view/browse.html.php | 4 ++-- module/product/view/browse.html.php | 4 ++-- module/project/view/story.html.php | 4 ++-- module/project/view/task.html.php | 2 +- module/project/view/team.html.php | 2 +- module/tutorial/view/index.html.php | 1 - 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index 85a8bc497e..6054c1cc16 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -67,7 +67,7 @@ js::set('bugBrowseType', ($browseType == 'bymodule' and $this->session->bugBrows if(commonModel::isTutorialMode()) { $wizardParams = helper::safe64Encode("productID=$productID&branch=$branch&extra=moduleID=$moduleID"); - common::printIcon('tutorial', 'wizard', "module=bug&method=create¶ms=$wizardParams", 'btn', 'button', 'plus', '', 'btn-bug-create', '', false, $lang->bug->create); + echo html::a($this->createLink('tutorial', 'wizard', "module=bug&method=create¶ms=$wizardParams"), " {$lang->bug->create}",'', "class='btn btn-bug-create'"); } else { @@ -237,7 +237,7 @@ if($shortcut.size() > 0) } app->loadConfig('qa', '', false);?> -config->qa->homepage != 'browse'):?> +config->qa->homepage) and $this->config->qa->homepage != 'browse'):?> $(function(){$('#modulemenu .nav li:last').after("
  • homepage?>
  • ")}); diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 6047fb071d..233ee777a5 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -61,7 +61,7 @@ if(commonModel::isTutorialMode()) { $wizardParams = helper::safe64Encode("productID=$productID&branch=$branch&moduleID=$moduleID"); - common::printIcon('tutorial', 'wizard', "module=story&method=create¶ms=$wizardParams", 'btn', 'button', 'plus', '', 'create-story-btn', false, '', $lang->story->create); + echo html::a($this->createLink('tutorial', 'wizard', "module=story&method=create¶ms=$wizardParams"), " {$lang->story->create}",'', "class='btn create-story-btn'"); } else { @@ -277,7 +277,7 @@ if($shortcut.size() > 0) $('#querybox').removeClass('show'); } -config->product->homepage != 'browse'):?> +config->product->homepage) and $this->config->product->homepage != 'browse'):?> $('#modulemenu .nav li.right:last').after("
  • homepage?>
  • ") diff --git a/module/project/view/story.html.php b/module/project/view/story.html.php index 2fd705ca8b..6365ef3e9f 100644 --- a/module/project/view/story.html.php +++ b/module/project/view/story.html.php @@ -26,7 +26,7 @@ if(commonModel::isTutorialMode()) { $wizardParams = helper::safe64Encode("project=$project->id"); - common::printIcon('tutorial', 'wizard', "module=project&method=linkStory¶ms=$wizardParams", '', 'button', 'link', '', 'link-story-btn', false, '', $lang->project->linkStory); + echo html::a($this->createLink('tutorial', 'wizard', "module=project&method=linkStory¶ms=$wizardParams"), " {$lang->project->linkStory}",'', "class='btn link-story-btn'"); } else { @@ -108,7 +108,7 @@ if(commonModel::isTutorialMode()) { $wizardParams = helper::safe64Encode($param); - common::printIcon('tutorial', 'wizard', "module=task&method=create¶ms=$wizardParams", '', 'list', 'list-ul', '', 'btn-task-create', false, '', $lang->project->wbs); + echo html::a($this->createLink('tutorial', 'wizard', "module=task&method=create¶ms=$wizardParams"), "",'', "class='btn-icon btn-task-create' title='{$lang->project->wbs}'"); } else { diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php index 589446a29b..fee3c4f15a 100644 --- a/module/project/view/task.html.php +++ b/module/project/view/task.html.php @@ -136,7 +136,7 @@ if($shortcut.size() > 0) statusActive = 'project->statusSelects[$this->session->taskBrowseType]);?>'; if(statusActive) $('#statusTab').addClass('active') -config->project->homepage != 'browse'):?> +config->project->homepage) and $this->config->project->homepage != 'browse'):?> $('#modulemenu .nav li.right:last').after("
  • homepage?>
  • ") diff --git a/module/project/view/team.html.php b/module/project/view/team.html.php index 0ae05f3849..2440e2cc3a 100644 --- a/module/project/view/team.html.php +++ b/module/project/view/team.html.php @@ -23,7 +23,7 @@ if(commonModel::isTutorialMode()) { $wizardParams = helper::safe64Encode("projectID=$project->id"); - common::printLink('tutorial', 'wizard', "module=project&method=managemembers¶ms=$wizardParams", $lang->project->manageMembers, '', "class='btn btn-primary manage-team-btn'"); + echo html::a($this->createLink('tutorial', 'wizard', "module=project&method=managemembers¶ms=$wizardParams"), $lang->project->manageMembers, '', "class='btn btn-primary manage-team-btn'"); } else { diff --git a/module/tutorial/view/index.html.php b/module/tutorial/view/index.html.php index 3f745a08de..8cbd2a8b00 100644 --- a/module/tutorial/view/index.html.php +++ b/module/tutorial/view/index.html.php @@ -274,7 +274,6 @@ $(function() var $required = $$('#' + requiredId); if($required.length) { - console.log($required, $required.val()); var val = $required.val(); if(val === undefined || val === null || val === '') {