summaryrefslogtreecommitdiffstats
path: root/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/js.js')
-rw-r--r--js/js.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/js.js b/js/js.js
index 244433184f8..86f5885ce62 100644
--- a/js/js.js
+++ b/js/js.js
@@ -9,4 +9,22 @@ $(document).ready(function() {
$('#user_menu').slideToggle(250);
return false;
});
+
+ //hide the advanced config
+ $('#advanced_options').hide();
+ $('#use_mysql').hide();
+
+ // 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);
+ });
+ $('#sqlite').click(function() {
+ $('#use_mysql').slideUp(250);
+ });
});