mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Remove unnecessary procAdminRemoveIcons action
This commit is contained in:
parent
dd6b577780
commit
d861040766
3 changed files with 1 additions and 40 deletions
|
|
@ -18,25 +18,6 @@ class AdminAdminController extends Admin
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove an icon.
|
||||
*
|
||||
* @deprecated
|
||||
*/
|
||||
public function procAdminRemoveIcons()
|
||||
{
|
||||
$site_info = Context::get('site_module_info');
|
||||
$icon_name = Rhymix\Framework\Filters\FilenameFilter::clean(Context::get('iconname'));
|
||||
if (Rhymix\Modules\Admin\Models\Icon::deleteIcon($site_info->domain_srl, $icon_name))
|
||||
{
|
||||
$this->setMessage('success_deleted');
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception('fail_to_delete');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the admin logo.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@
|
|||
<action name="procAdminUpdateFTPInfo" type="controller" />
|
||||
<action name="procAdminRemoveFTPInfo" type="controller" />
|
||||
<action name="procAdminUpdateConfig" type="controller" />
|
||||
<action name="procAdminRemoveIcons" type="controller" />
|
||||
<action name="procAdminDeleteLogo" type="controller" />
|
||||
<action name="getSiteAllList" type="model" permission="root" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ jQuery(function($){
|
|||
}
|
||||
}).triggerHandler("change");
|
||||
}
|
||||
|
||||
|
||||
// Disable rewrite level 2 if test AJAX request fails.
|
||||
if ($('#use_rewrite_2').size() && !$('#use_rewrite_2').is(':checked')) {
|
||||
var testval = 1000 + Math.floor(Math.random() * 9000);
|
||||
|
|
@ -62,25 +62,6 @@ function viewSiteSearch(){
|
|||
jQuery(".site_keyword_search").css("display","");
|
||||
}
|
||||
|
||||
var icon = null;
|
||||
function deleteIcon(iconname){
|
||||
var params = [];
|
||||
params.iconname = iconname;
|
||||
exec_xml('admin', 'procAdminRemoveIcons', params, iconDeleteMessage, ['error', 'message'], params);
|
||||
icon = iconname;
|
||||
}
|
||||
function iconDeleteMessage(ret_obj){
|
||||
alert(ret_obj.message);
|
||||
|
||||
if (ret_obj.error == '0')
|
||||
{
|
||||
if (icon == 'favicon.ico'){
|
||||
jQuery('.faviconPreview img').attr('src', 'modules/admin/tpl/img/faviconSample.png');
|
||||
}else if (icon == 'mobicon.png'){
|
||||
jQuery('.mobiconPreview img').attr('src', 'modules/admin/tpl/img/mobiconSample.png');
|
||||
}
|
||||
}
|
||||
}
|
||||
function doRecompileCacheFile() {
|
||||
if (!confirm(xe.lang.confirm_run)) return;
|
||||
exec_json('admin.procAdminRecompileCacheFile', {}, function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue