mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Rename 'ajax' to 'json' because we don't use XML
We use json as response
This commit is contained in:
parent
76cf24f426
commit
950579c7f5
18 changed files with 83 additions and 91 deletions
|
|
@ -11,7 +11,7 @@ class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
|
||||
$this->addJs('js/CustomAdminSettings.js', true); // add js file
|
||||
|
||||
$this->addAjaxHook('AjaxAdminGetData', 'AjaxAdminGetData');
|
||||
$this->addJsonHook('JsonAdminGetData', 'JsonAdminGetData');
|
||||
|
||||
$this->addTemplate('templates/PluginCustomAdminSettingsTab.html', true);
|
||||
}
|
||||
|
|
@ -19,9 +19,9 @@ class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function AjaxAdminGetData()
|
||||
public function JsonAdminGetData()
|
||||
{
|
||||
return $this->ajaxResponse(__FUNCTION__, array(
|
||||
return $this->jsonResponse(__FUNCTION__, array(
|
||||
'PHP' => phpversion()
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue