* refactor code.

This commit is contained in:
Catouse
2016-05-04 10:25:37 +08:00
parent 9abc3ed6be
commit 6ba5b60e09
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ class tutorial extends control
$setting = isset($this->config->tutorial->tasks->setting) ? $this->config->tutorial->tasks->setting : '';
$this->session->set('tutorialMode', true);
$this->loadModel('setting')->setItem($this->app->user->account . '.common.global.novice', true);
$this->view->title = $this->lang->tutorial->common;
$this->view->current = $task;
@@ -71,7 +72,7 @@ class tutorial extends control
$this->loadModel('setting')->setItem($this->app->user->account . '.common.global.novice', false);
if(empty($referer)) $referer = $this->createLink('index');
die(js::locate($referer, 'parent'));
die(js::locate(helper::safe64Decode($referer), 'parent'));
}
/**
+1 -1
View File
@@ -1781,7 +1781,7 @@ function checkTutorial()
{
if(confirm(window.TUTORIAL.tip))
{
$.getJSON(createLink('tutorial', 'quit'), function()
$.getJSON(createLink('tutorial', 'ajaxQuit'), function()
{
window.location.reload();
}).error(function(){alert(lang.timeout)});