mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 06:09:55 +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");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue