* adjust code.

This commit is contained in:
wangyidong
2016-05-03 17:13:11 +08:00
parent 5ffc37fefe
commit a512350363
54 changed files with 393 additions and 343 deletions
+6 -10
View File
@@ -40,24 +40,20 @@ class datatable extends control
}
$name = $account . '.datatable.' . $this->post->target . '.' . $this->post->name;
$this->loadModel('setting')->setItem($name, $this->post->value);
if(dao::isError())
{
$this->send(array('result' => 'fail', 'message' => 'dao error.'));
}
else
{
$this->send(array('result' => 'success'));
}
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => 'dao error.'));
$this->send(array('result' => 'success'));
}
}
/**
* Save config
* custom fields.
*
* @param string $module
* @param string $method
* @access public
* @return void
*/
public function custom($module, $method)
public function ajaxCustom($module, $method)
{
$account = $this->app->user->account;
$name = 'owner=' . $account . '&module=datatable&section=' . $module . $method . '&key=cols';