mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
issue 532: Fixed a combobox bug in install pages
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9890 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9a9324f41f
commit
5a16701a05
4 changed files with 26 additions and 23 deletions
|
|
@ -34,9 +34,9 @@ jQuery(function($){
|
|||
// 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');
|
||||
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(){
|
||||
|
|
@ -72,20 +72,19 @@ jQuery(function($){
|
|||
// Set Input
|
||||
function set_label(){
|
||||
var v = $(this).next('label').text();
|
||||
$(this).parents('ul:first').prev('.myValue').text('').append(v);
|
||||
$(this).parents('ul:first').prev('.myValue').addClass('selected');
|
||||
$(this).closest('.select').find('>.myValue').text(v).addClass('selected');
|
||||
}
|
||||
|
||||
// Set Anchor
|
||||
function set_anchor(){
|
||||
var v = $(this).text();
|
||||
$(this).parents('ul:first').prev('.myValue').text('').append(v);
|
||||
$(this).parents('ul:first').prev('.myValue').addClass('selected');
|
||||
$(this).closest('.select').find('>.myValue').text(v).addClass('selected');
|
||||
}
|
||||
|
||||
// Anchor Focus Out
|
||||
$('*:not("div.select a")').focus(function(){
|
||||
$('.aList').parent('.select').removeClass('open');
|
||||
$(window).mousedown(function(evt){
|
||||
if($(evt.target).closest('.select').length) return;
|
||||
$('.aList,.iList').parent('.select').removeClass('open');
|
||||
});
|
||||
|
||||
select_value.click(show_option);
|
||||
|
|
@ -93,5 +92,4 @@ jQuery(function($){
|
|||
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);
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue