summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-11-17 12:32:11 -0500
committerEvan Prodromou <evan@status.net>2010-11-17 12:32:11 -0500
commitd2ddda16e9db6bbf575974f00d65e96755a01879 (patch)
tree9cd46c14e1e6810e879f57915117dc0c9de55c8c
parentd3d91f0f6eff49b4d36d2352cdadc23f3825270d (diff)
use minified version of jquery.cookie.js
-rw-r--r--js/jquery.cookie.min.js1
-rw-r--r--lib/action.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/js/jquery.cookie.min.js b/js/jquery.cookie.min.js
new file mode 100644
index 000000000..eb129db96
--- /dev/null
+++ b/js/jquery.cookie.min.js
@@ -0,0 +1 @@
+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<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}}; \ No newline at end of file
diff --git a/lib/action.php b/lib/action.php
index 96ce5d093..980876d5b 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -275,7 +275,7 @@ class Action extends HTMLOutputter // lawsuit
if (Event::handle('StartShowJQueryScripts', array($this))) {
$this->script('jquery.min.js');
$this->script('jquery.form.min.js');
- $this->script('jquery.cookie.js');
+ $this->script('jquery.cookie.min.js');
$this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.js').'"); }');
$this->script('jquery.joverlay.min.js');
Event::handle('EndShowJQueryScripts', array($this));