summaryrefslogtreecommitdiff
path: root/beta_accents/app/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'beta_accents/app/script.js')
-rw-r--r--beta_accents/app/script.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/beta_accents/app/script.js b/beta_accents/app/script.js
index 2c14563..c8c0a06 100644
--- a/beta_accents/app/script.js
+++ b/beta_accents/app/script.js
@@ -27,14 +27,12 @@ function addPers(form)
function switchCSS()
{
-
- alert ( "On change de CSS !");
var listCSS = document.getElementById('switcherCSS');
if (listCSS)
{
if (listCSS.options.selectedIndex>=0)
{
- alert ( "On passe au css :" + listCSS.options[listCSS.options.selectedIndex].value);
+
setActiveStyleSheet(listCSS.options[listCSS.options.selectedIndex].value);
}
}
@@ -282,6 +280,7 @@ function verifProfil()
//*************************************************************************//
// Switcher CSS
//*************************************************************************//
+
function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
@@ -338,4 +337,4 @@ window.onunload = function(e) {
}
var cookie = readCookie("aworcustom_css");
var title = cookie ? cookie : getPreferredStyleSheet();
-setActiveStyleSheet(title); \ No newline at end of file
+setActiveStyleSheet(title);