2016-06-05 04:26:50 +08:00
|
|
|
|
|
|
|
(function () {
|
|
|
|
|
2019-07-05 03:09:27 +08:00
|
|
|
if (!window.rl)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-06-05 04:26:50 +08:00
|
|
|
/**
|
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
function CustomAdminSettings()
|
|
|
|
{
|
|
|
|
this.php = ko.observable('');
|
|
|
|
|
|
|
|
this.loading = ko.observable(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
CustomAdminSettings.prototype.onBuild = function () // special function
|
|
|
|
{
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
this.loading(true);
|
|
|
|
|
|
|
|
window.rl.pluginRemoteRequest(function (sResult, oData) {
|
|
|
|
|
|
|
|
self.loading(false);
|
|
|
|
|
|
|
|
if (window.rl.Enums.StorageResultType.Success === sResult && oData && oData.Result)
|
|
|
|
{
|
|
|
|
self.php(oData.Result.PHP || '');
|
|
|
|
}
|
|
|
|
|
|
|
|
}, 'AjaxAdminGetData');
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-11-25 21:39:46 +08:00
|
|
|
window.rl.addSettingsViewModelForAdmin(CustomAdminSettings, 'PluginCustomAdminSettingsTab',
|
2016-06-05 04:26:50 +08:00
|
|
|
'SETTINGS_CUSTOM_ADMIN_CUSTOM_TAB_PLUGIN/TAB_NAME', 'custom');
|
|
|
|
|
2020-11-25 21:39:46 +08:00
|
|
|
}());
|