2011-04-17 17:49:54 +04:00
|
|
|
$(document).ready(function() {
|
2011-04-17 02:45:05 +04:00
|
|
|
//hide the advanced config
|
|
|
|
$('#advanced_options').hide();
|
|
|
|
$('#use_mysql').hide();
|
2011-04-17 20:00:10 +04:00
|
|
|
$('label.sqlite').css('background-color', '#ddd');
|
|
|
|
$('label.mysql').css('background-color', '#fff');
|
2011-04-17 02:45:05 +04:00
|
|
|
|
|
|
|
// Sets advanced_options link behaviour :
|
|
|
|
$('#advanced_options_link').click(function() {
|
|
|
|
$('#advanced').toggleClass('userLinkOn');
|
|
|
|
$('#advanced_options').slideToggle(250);
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#mysql').click(function() {
|
|
|
|
$('#use_mysql').slideDown(250);
|
2011-04-17 20:00:10 +04:00
|
|
|
$('label.sqlite').css('background-color', '#fff');
|
|
|
|
$('label.mysql').css('background-color', '#ddd');
|
2011-04-17 02:45:05 +04:00
|
|
|
});
|
|
|
|
$('#sqlite').click(function() {
|
|
|
|
$('#use_mysql').slideUp(250);
|
2011-04-17 20:00:10 +04:00
|
|
|
$('label.sqlite').css('background-color', '#ddd');
|
|
|
|
$('label.mysql').css('background-color', '#fff');
|
2011-04-17 02:45:05 +04:00
|
|
|
});
|
2011-03-02 01:20:16 +03:00
|
|
|
});
|