From 06fb770bd340e5a18555e0da55a4dd6ba22f76ba Mon Sep 17 00:00:00 2001 From: Nathan Haug Date: Sun, 30 Oct 2011 16:32:37 -0700 Subject: Issue #22336 by quicksketch, scor, boombatower, and rfay. Move all core Drupal files under a core subdirectory. --- core/misc/jquery.cookie.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 core/misc/jquery.cookie.js (limited to 'core/misc/jquery.cookie.js') diff --git a/core/misc/jquery.cookie.js b/core/misc/jquery.cookie.js new file mode 100644 index 00000000000..79f514c2059 --- /dev/null +++ b/core/misc/jquery.cookie.js @@ -0,0 +1,11 @@ + +/** + * Cookie plugin 1.0 + * + * Copyright (c) 2006 Klaus Hartl (stilbuero.de) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + */ +jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h