mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
Add a new theme for the installer
This commit is contained in:
parent
d7118d37ba
commit
c32a4e1345
32 changed files with 734 additions and 1086 deletions
|
|
@ -1,31 +1,9 @@
|
|||
jQuery(function($){
|
||||
// TARGET toggle
|
||||
$(document.body).on('click', '.x [data-toggle]', function(){
|
||||
var $this = $(this);
|
||||
if($this.is('a') && $this.attr('href') != $this.attr('data-toggle')){
|
||||
var target = $this.attr('href');
|
||||
$this.attr('data-toggle', target);
|
||||
}
|
||||
var $target = $($this.attr('data-toggle'));
|
||||
var focusable = 'a,input,button,textarea,select';
|
||||
$target.toggle();
|
||||
if($target.is(':visible') && !$target.find(focusable).length){
|
||||
$target.not(':disabled').attr('tabindex','0').focus();
|
||||
} else if($target.is(':visible') && $target.find(focusable).length) {
|
||||
$target.not(':disabled').find(focusable).eq(0).focus();
|
||||
} else {
|
||||
$this.focus();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// SUBMIT disabled
|
||||
$('input[required]').change(function(){
|
||||
var invalid = $('input[required]').is('[value=""], [value=" "], [value=" "], [value=" "]');
|
||||
var $submit = $('[type="submit"]');
|
||||
if(!invalid){
|
||||
$submit.removeClass('x_disabled');
|
||||
} else {
|
||||
$submit.addClass('x_disabled');
|
||||
}
|
||||
});
|
||||
$('.focus').focus();
|
||||
if($("#db_type").size()) {
|
||||
$("#db_type").click(function() {
|
||||
$("p.db_type").hide();
|
||||
$("p.db_type_" + $(this).val()).show();
|
||||
}).triggerHandler("click");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,145 +0,0 @@
|
|||
/**
|
||||
* @brief DB정보 Setting후 실행될 함수
|
||||
*/
|
||||
function completeAgreement(ret_obj)
|
||||
{
|
||||
if(ret_obj['error'] != 0) {
|
||||
alert(ret_obj['message']);
|
||||
return;
|
||||
} else {
|
||||
var url = current_url.setQuery('act', 'dispInstallCheckEnv');
|
||||
location.href = url;
|
||||
}
|
||||
}
|
||||
|
||||
function completeDBSetting(ret_obj) {
|
||||
if(ret_obj['error'] != 0) {
|
||||
alert(ret_obj['message']);
|
||||
return;
|
||||
} else {
|
||||
location.href = "./index.php?act=dispInstallConfigForm";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Rewrite module, Time-zone Setting 후 실행될 함수
|
||||
*/
|
||||
function completeConfigSetting(ret_obj) {
|
||||
if(ret_obj['error'] != 0) {
|
||||
alert(ret_obj['message']);
|
||||
return;
|
||||
} else {
|
||||
location.href = "./index.php?act=dispInstallManagerForm";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치 완료후 실행될 함수
|
||||
*/
|
||||
function completeInstalled(ret_obj) {
|
||||
alert(ret_obj["message"]);
|
||||
location.href = "./index.php";
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FTP 정보 입력
|
||||
**/
|
||||
function doInstallFTPInfo(form) {
|
||||
var params={}, data=jQuery(form).serializeArray();
|
||||
jQuery.each(data, function(i, field){ params[field.name] = field.value });
|
||||
exec_xml('install', 'procInstallFTP', params, completeInstallFTPInfo, ['error', 'message'], params, form);
|
||||
return false;
|
||||
}
|
||||
|
||||
function completeInstallFTPInfo(ret_obj) {
|
||||
location.href = current_url;
|
||||
}
|
||||
|
||||
function doCheckFTPInfo() {
|
||||
var form = jQuery("#ftp_form").get(0);
|
||||
var params={}, data=jQuery(form).serializeArray();
|
||||
jQuery.each(data, function(i, field){ params[field.name] = field.value });
|
||||
|
||||
exec_xml('install', 'procInstallCheckFTP', params, completeInstallCheckFtpInfo, ['error', 'message'], params, form);
|
||||
return false;
|
||||
}
|
||||
|
||||
function completeInstallCheckFtpInfo(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
}
|
||||
|
||||
function completeFtpPath(ret_obj){
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function getFTPList(pwd)
|
||||
{
|
||||
var form = jQuery("#ftp_form").get(0);
|
||||
if(typeof(pwd) != 'undefined')
|
||||
{
|
||||
form.ftp_root_path.value = pwd;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!form.ftp_root_path.value)
|
||||
{
|
||||
if(typeof(form.sftp) != 'undefined' && form.sftp.checked) {
|
||||
form.ftp_root_path.value = xe_root;
|
||||
}
|
||||
else
|
||||
{
|
||||
form.ftp_root_path.value = "/";
|
||||
}
|
||||
}
|
||||
}
|
||||
var params={}, data=jQuery("#ftp_form").serializeArray();
|
||||
jQuery.each(data, function(i, field){ params[field.name] = field.value });
|
||||
exec_xml('install', 'getInstallFTPList', params, completeGetFtpInfo, ['list', 'error', 'message'], params, form);
|
||||
}
|
||||
|
||||
function completeGetFtpInfo(ret_obj)
|
||||
{
|
||||
if(ret_obj['error'] != 0)
|
||||
{
|
||||
alert(ret_obj['error']);
|
||||
alert(ret_obj['message']);
|
||||
return;
|
||||
}
|
||||
var e = jQuery("#ftplist").empty();
|
||||
var list = "";
|
||||
if(!jQuery.isArray(ret_obj['list']['item']))
|
||||
{
|
||||
ret_obj['list']['item'] = [ret_obj['list']['item']];
|
||||
}
|
||||
|
||||
pwd = jQuery("#ftp_form").get(0).ftp_root_path.value;
|
||||
if(pwd != "/")
|
||||
{
|
||||
arr = pwd.split("/");
|
||||
arr.pop();
|
||||
arr.pop();
|
||||
arr.push("");
|
||||
target = arr.join("/");
|
||||
list = list + "<li><a href='#ftpSetup' onclick=\"getFTPList('"+target+"')\">../</a></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;
|
||||
}
|
||||
else
|
||||
{
|
||||
list = list + "<li><a href='#ftpSetup' onclick=\"getFTPList('"+pwd+v+"')\">"+v+"</a></li>";
|
||||
}
|
||||
}
|
||||
|
||||
//list = "<td><ul>"+list+"</ul></td>";
|
||||
e.append(jQuery(list));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue