* finish task #2545.

This commit is contained in:
wangyidong
2016-03-30 10:55:00 +08:00
parent ddf15aa13b
commit b053ec972f
7 changed files with 98 additions and 5 deletions
+19
View File
@@ -142,4 +142,23 @@ class custom extends control
$this->view->position[] = $this->lang->custom->flow;
$this->display();
}
/**
* Ajax save custom.
*
* @param string $module
* @param string $section
* @param string $key
* @access public
* @return void
*/
public function ajaxSaveCustom($module, $section, $key)
{
if($_POST)
{
$account = $this->app->user->account;
$this->loadModel('setting')->setItem("$account.$module.$section.$key", join(',', $this->post->fields));
die(js::reload('parent'));
}
}
}