From dc9c24a613ba10eeeba16364b56fbc2bf55462ba Mon Sep 17 00:00:00 2001 From: Ferdinand Prantl Date: Tue, 5 Nov 2013 11:41:04 +0100 Subject: [PATCH] Add themecss option to control the name of the jQuery UI css file --- jquery.themeswitcher.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.themeswitcher.js b/jquery.themeswitcher.js index f28959c..b605a32 100644 --- a/jquery.themeswitcher.js +++ b/jquery.themeswitcher.js @@ -19,6 +19,7 @@ rounded: true, imgpath: "", themepath: "https://ajax.googleapis.com/ajax/libs/jqueryui/", + themecss: "jquery-ui.css", jqueryuiversion: "1.8.10", initialtext: "Switch Theme", buttonpretext: "Theme:", @@ -343,7 +344,7 @@ if (!url) { var urlPrefix = settings.themepath + settings.jqueryuiversion + "/themes/"; - url = urlPrefix + data.name + "/jquery-ui.css"; + url = urlPrefix + data.name + "/" + settings.themecss; currentStyle = $('link[href^="' + urlPrefix + '"]').first(); }