Skip to content
Browse files

switch to https google cdn

  • Loading branch information...
1 parent 74b557e commit f5468381bb8c1e5ee77f5f417d5ea4facfc84c6f @vlovich vlovich committed with Buildbot Buildmaster Oct 7, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 jquery.themeswitcher.js
  2. +2 −2 jquery.themeswitcher.min.js
View
4 jquery.themeswitcher.js
@@ -338,7 +338,7 @@
.attr("type","text/css")
.attr("rel","stylesheet");
- ( data.url )? style.attr("href",data.url) : style.attr("href","http://ajax.googleapis.com/ajax/libs/jqueryui/"+settings.jqueryuiversion+"/themes/"+data.name+"/jquery-ui.css");
+ ( data.url )? style.attr("href",data.url) : style.attr("href","https://ajax.googleapis.com/ajax/libs/jqueryui/"+settings.jqueryuiversion+"/themes/"+data.name+"/jquery-ui.css");
style.appendTo("head");
$.cookie(settings.cookiename, data.name);
@@ -437,4 +437,4 @@ jQuery.cookie = function (key, value, options) {
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
-};
+};
View
4 jquery.themeswitcher.min.js
@@ -1,4 +1,4 @@
-(function(b){b.fn.themeswitcher=function(c){function d(f){a.onselect!==null&&a.onselect();m.text(a.buttonpretext+" "+f.title);var e=b("<link/>").attr("type","text/css").attr("rel","stylesheet");f.url?e.attr("href",f.url):e.attr("href","http://ajax.googleapis.com/ajax/libs/jqueryui/"+a.jqueryuiversion+"/themes/"+f.name+"/jquery-ui.css");e.appendTo("head");b.cookie(a.cookiename,f.name);g.find(".jquery-ui-switcher-title").text(a.buttonpretext+" "+f.title);a.closeonselect&&h()}function j(f){var e=null;
+(function(b){b.fn.themeswitcher=function(c){function d(f){a.onselect!==null&&a.onselect();m.text(a.buttonpretext+" "+f.title);var e=b("<link/>").attr("type","text/css").attr("rel","stylesheet");f.url?e.attr("href",f.url):e.attr("href","https://ajax.googleapis.com/ajax/libs/jqueryui/"+a.jqueryuiversion+"/themes/"+f.name+"/jquery-ui.css");e.appendTo("head");b.cookie(a.cookiename,f.name);g.find(".jquery-ui-switcher-title").text(a.buttonpretext+" "+f.title);a.closeonselect&&h()}function j(f){var e=null;
b.each(l,function(n,i){if(i.name.toLowerCase()===f.toLowerCase()||i.title.toLowerCase()===f.toLowerCase()){e=i;return false}});if(!e)return l[0];return e}function h(){a.onclose!==null&&a.onclose();g.find(".jquery-ui-switcher-list-hldr").slideUp("fast",function(){g.find(".jquery-ui-switcher-link").css({color:"#666",background:"#eee url("+a.imgpath+"buttonbg.png) repeat-x 50% 50%"})})}var g=this,o={},a={loadtheme:"",height:200,width:175,rounded:true,imgpath:"",jqueryuiversion:"1.8.10",initialtext:"Switch Theme",
buttonpretext:"Theme:",closeonselect:true,buttonheight:14,cookiename:"jquery-ui-theme",themes:[],additionalthemes:[],onopen:null,onclose:null,onselect:null};if(c){b.each(c,function(f,e){o[f.toLowerCase()]=e});b.extend(a,o)}var l=a.themes.length?a.themes:[{title:"Black Tie",name:"black-tie",icon:"theme_90_black_tie.png"},{title:"Blitzer",name:"blitzer",icon:"theme_90_blitzer.png"},{title:"Cupertino",name:"cupertino",icon:"theme_90_cupertino.png"},{title:"Dark Hive",name:"dark-hive",icon:"theme_90_dark_hive.png"},
{title:"Dot Luv",name:"dot-luv",icon:"theme_90_dot_luv.png"},{title:"Eggplant",name:"eggplant",icon:"theme_90_eggplant.png"},{title:"Excite Bike",name:"excite-bike",icon:"theme_90_excite_bike.png"},{title:"Flick",name:"flick",icon:"theme_90_flick.png"},{title:"Hot Sneaks",name:"hot-sneaks",icon:"theme_90_hot_sneaks.png"},{title:"Humanity",name:"humanity",icon:"theme_90_humanity.png"},{title:"Le Frog",name:"le-frog",icon:"theme_90_le_frog.png"},{title:"Mint Choc",name:"mint-choc",icon:"theme_90_mint_choco.png"},
@@ -11,4 +11,4 @@ padding:"3px 3px 3px 0",display:"none"}).bind({mouseleave:function(){h()}});if(a
"float":"left",width:"100%",clear:"left"}).bind({mouseenter:function(){i.css("background","url("+a.imgpath+"menuhoverbg.png) repeat-x 50% 50%")},mouseleave:function(){i.css("background","none")},click:function(q){d(b(this).data());q.preventDefault()}}).attr("href","#").data(e).appendTo(n);b("<img>").attr("src",a.imgpath+e.icon).attr("title",e.title).css({"float":"left","margin-right":"5px",border:"1px solid #333"}).appendTo(i);b("<span>").css({"float":"left","padding-top":"5px",color:"#AAA"}).text(e.title).appendTo(i)});
this.css("position","relative");this.append(c);this.append(k);return this}})(jQuery);
jQuery.cookie=function(b,c,d){if(arguments.length>1&&String(c)!=="[object Object]"){d=jQuery.extend({},d);if(c===null||c===undefined)d.expires=-1;if(typeof d.expires==="number"){var j=d.expires,h=d.expires=new Date;h.setDate(h.getDate()+j)}c=String(c);return document.cookie=[encodeURIComponent(b),"=",d.raw?c:encodeURIComponent(c),d.expires?"; expires="+d.expires.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join("")}d=c||{};h=d.raw?function(g){return g}:
-decodeURIComponent;return(j=RegExp("(?:^|; )"+encodeURIComponent(b)+"=([^;]*)").exec(document.cookie))?h(j[1]):null};
+decodeURIComponent;return(j=RegExp("(?:^|; )"+encodeURIComponent(b)+"=([^;]*)").exec(document.cookie))?h(j[1]):null};

0 comments on commit f546838

Please sign in to comment.
Something went wrong with that request. Please try again.