mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
merge from 1.7.3.5(r13153:r13167)
git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cc47d2b247
commit
2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions
|
|
@ -1,85 +1,31 @@
|
|||
jQuery(function($){
|
||||
// Input Clear
|
||||
var iText = $('.item>.iLabel').next('.iText');
|
||||
$('.item>.iLabel').css('position','absolute');
|
||||
iText
|
||||
.focus(function(){
|
||||
$(this).prev('.iLabel').css('visibility','hidden');
|
||||
})
|
||||
.blur(function(){
|
||||
if($(this).val() == ''){
|
||||
$(this).prev('.iLabel').css('visibility','visible');
|
||||
} else {
|
||||
$(this).prev('.iLabel').css('visibility','hidden');
|
||||
}
|
||||
})
|
||||
.change(function(){
|
||||
if($(this).val() == ''){
|
||||
$(this).prev('.iLabel').css('visibility','visible');
|
||||
} else {
|
||||
$(this).prev('.iLabel').css('visibility','hidden');
|
||||
}
|
||||
})
|
||||
.blur();
|
||||
// Common
|
||||
var select_root = $('div.select');
|
||||
var select_value = $('.myValue');
|
||||
var select_a = $('div.select ul>li>a');
|
||||
var select_input = $('div.select ul>li>input[type=radio]');
|
||||
var select_label = $('div.select ul>li>label');
|
||||
|
||||
// Radio Default Value
|
||||
$('div.myValue').each(function(){
|
||||
var default_value = $(this).next('.iList').find('input[checked]').next('label').text();
|
||||
$(this).append(default_value);
|
||||
// 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;
|
||||
});
|
||||
|
||||
// Line
|
||||
select_value.bind('focusin',function(){$(this).addClass('outLine');});
|
||||
select_value.bind('focusout',function(){$(this).removeClass('outLine');});
|
||||
select_input.bind('focusin',function(){$(this).parents('div.select').children('div.myValue').addClass('outLine');});
|
||||
select_input.bind('focusout',function(){$(this).parents('div.select').children('div.myValue').removeClass('outLine');});
|
||||
|
||||
// Show
|
||||
function show_option(){
|
||||
$(this).parents('div.select:first').toggleClass('open');
|
||||
}
|
||||
|
||||
// Hover
|
||||
function i_hover(){
|
||||
$(this).parents('ul:first').children('li').removeClass('hover');
|
||||
$(this).parents('li:first').toggleClass('hover');
|
||||
}
|
||||
|
||||
// Hide
|
||||
function hide_option(){
|
||||
var t = $(this);
|
||||
setTimeout(function(){
|
||||
t.parents('div.select:first').removeClass('open');
|
||||
}, 1);
|
||||
}
|
||||
|
||||
// Set Input
|
||||
function set_label(){
|
||||
var v = $(this).next('label').text();
|
||||
$(this).closest('.select').find('>.myValue').text(v).addClass('selected');
|
||||
}
|
||||
|
||||
// Set Anchor
|
||||
function set_anchor(){
|
||||
var v = $(this).text();
|
||||
$(this).closest('.select').find('>.myValue').text(v).addClass('selected');
|
||||
}
|
||||
|
||||
// Anchor Focus Out
|
||||
$(window).mousedown(function(evt){
|
||||
if($(evt.target).closest('.select').length) return;
|
||||
$('.aList,.iList').parent('.select').removeClass('open');
|
||||
// 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');
|
||||
}
|
||||
});
|
||||
|
||||
select_value.click(show_option);
|
||||
select_root.removeClass('open');
|
||||
select_a.click(set_anchor).click(hide_option).focus(i_hover).hover(i_hover);
|
||||
select_input.change(set_label).focus(set_label);
|
||||
select_label.hover(i_hover).click(hide_option);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ function completeGetFtpInfo(ret_obj)
|
|||
arr.pop();
|
||||
arr.push("");
|
||||
target = arr.join("/");
|
||||
list = list + "<li><a href='#ftpSetup' style='color:#fff; text-decoration:underline;' onclick=\"getFTPList('"+target+"')\">../</a></li>";
|
||||
list = list + "<li><a href='#ftpSetup' onclick=\"getFTPList('"+target+"')\">../</a></li>";
|
||||
}
|
||||
|
||||
for(var i=0;i<ret_obj['list']['item'].length;i++)
|
||||
|
|
@ -136,7 +136,7 @@ function completeGetFtpInfo(ret_obj)
|
|||
}
|
||||
else
|
||||
{
|
||||
list = list + "<li><a href='#ftpSetup' style='color:#fff; text-decoration:underline;' onclick=\"getFTPList('"+pwd+v+"')\">"+v+"</a></li>";
|
||||
list = list + "<li><a href='#ftpSetup' onclick=\"getFTPList('"+pwd+v+"')\">"+v+"</a></li>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue