mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
apply favicon, mobile icon
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9097 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0245d5553b
commit
9f94898ff0
7 changed files with 110 additions and 74 deletions
|
|
@ -1,5 +1,5 @@
|
|||
function getFTPList(pwd)
|
||||
{
|
||||
{
|
||||
var form = jQuery("#ftp_form").get(0);
|
||||
if(typeof(pwd) != 'undefined')
|
||||
{
|
||||
|
|
@ -16,16 +16,16 @@ function getFTPList(pwd)
|
|||
form.ftp_root_path.value = "/";
|
||||
}
|
||||
}
|
||||
|
||||
var params= new Array();
|
||||
//ftp_pasv not used
|
||||
params['ftp_user'] = jQuery("#ftp_user").val();
|
||||
|
||||
var params= new Array();
|
||||
//ftp_pasv not used
|
||||
params['ftp_user'] = jQuery("#ftp_user").val();
|
||||
params['ftp_password'] =jQuery("#ftp_password").val();
|
||||
params['ftp_host'] = jQuery("#ftp_host").val();
|
||||
params['ftp_port'] = jQuery("#ftp_port").val();
|
||||
params['ftp_root_path'] = jQuery("#ftp_root_path").val();
|
||||
|
||||
exec_xml('admin', 'getAdminFTPList', params, completeGetFtpInfo, ['list', 'error', 'message'], params, form);
|
||||
|
||||
exec_xml('admin', 'getAdminFTPList', params, completeGetFtpInfo, ['list', 'error', 'message'], params, form);
|
||||
}
|
||||
|
||||
function removeFTPInfo()
|
||||
|
|
@ -43,7 +43,7 @@ function completeGetFtpInfo(ret_obj)
|
|||
return;
|
||||
}
|
||||
var e = jQuery("#ftpSuggestion").empty();
|
||||
|
||||
|
||||
var list = "";
|
||||
if(!jQuery.isArray(ret_obj['list']['item']))
|
||||
{
|
||||
|
|
@ -60,14 +60,14 @@ function completeGetFtpInfo(ret_obj)
|
|||
target = arr.join("/");
|
||||
list = list + "<li><button type='button' onclick=\"getFTPList('"+target+"')\">../</button></li>";
|
||||
}
|
||||
|
||||
|
||||
for(var i=0;i<ret_obj['list']['item'].length;i++)
|
||||
{
|
||||
{
|
||||
var v = ret_obj['list']['item'][i];
|
||||
if(v == "../")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if( v == "./")
|
||||
{
|
||||
continue;
|
||||
|
|
@ -81,18 +81,28 @@ function completeGetFtpInfo(ret_obj)
|
|||
e.append(jQuery(list));
|
||||
}
|
||||
|
||||
function deleteIcon(iconname){
|
||||
var icon = null;
|
||||
function deleteIcon(iconname){
|
||||
var params = new Array();
|
||||
params['iconname'] = iconname;
|
||||
exec_xml('admin', 'procAdminRemoveIcons', params, iconDeleteMessage, ['error', 'message'], params);
|
||||
|
||||
icon = iconname;
|
||||
}
|
||||
function iconDeleteMessage(ret_obj){
|
||||
alert(ret_obj['message']);
|
||||
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() {
|
||||
function doRecompileCacheFile() {
|
||||
var params = new Array();
|
||||
exec_xml("admin","procAdminRecompileCacheFile", params, completeCacheMessage);
|
||||
exec_xml("admin","procAdminRecompileCacheFile", params, completeCacheMessage);
|
||||
}
|
||||
function completeCacheMessage(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue