/*!
- * Ext JS Library 3.1.1
- * Copyright(c) 2006-2010 Ext JS, LLC
+ * Ext JS Library 3.2.1
+ * Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
*/
-/*\r
- Cookie Plug-in\r
- \r
- This plug in automatically gets all the cookies for this site and adds them to the post_params.\r
- Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params.\r
- The cookies will override any other post params with the same name.\r
-*/\r
-\r
-var SWFUpload;\r
-if (typeof(SWFUpload) === "function") {\r
- SWFUpload.prototype.initSettings = function (oldInitSettings) {\r
- return function () {\r
- if (typeof(oldInitSettings) === "function") {\r
- oldInitSettings.call(this);\r
- }\r
- \r
- this.refreshCookies(false); // The false parameter must be sent since SWFUpload has not initialzed at this point\r
- };\r
- }(SWFUpload.prototype.initSettings);\r
- \r
- // refreshes the post_params and updates SWFUpload. The sendToFlash parameters is optional and defaults to True\r
- SWFUpload.prototype.refreshCookies = function (sendToFlash) {\r
- if (sendToFlash === undefined) {\r
- sendToFlash = true;\r
- }\r
- sendToFlash = !!sendToFlash;\r
- \r
- // Get the post_params object\r
- var postParams = this.settings.post_params;\r
- \r
- // Get the cookies\r
- var i, cookieArray = document.cookie.split(';'), caLength = cookieArray.length, c, eqIndex, name, value;\r
- for (i = 0; i < caLength; i++) {\r
- c = cookieArray[i];\r
- \r
- // Left Trim spaces\r
- while (c.charAt(0) === " ") {\r
- c = c.substring(1, c.length);\r
- }\r
- eqIndex = c.indexOf("=");\r
- if (eqIndex > 0) {\r
- name = c.substring(0, eqIndex);\r
- value = c.substring(eqIndex + 1);\r
- postParams[name] = value;\r
- }\r
- }\r
- \r
- if (sendToFlash) {\r
- this.setPostParams(postParams);\r
- }\r
- };\r
-\r
-}\r
+/*
+ Cookie Plug-in
+
+ This plug in automatically gets all the cookies for this site and adds them to the post_params.
+ Cookies are loaded only on initialization. The refreshCookies function can be called to update the post_params.
+ The cookies will override any other post params with the same name.
+*/
+
+var SWFUpload;
+if (typeof(SWFUpload) === "function") {
+ SWFUpload.prototype.initSettings = function (oldInitSettings) {
+ return function () {
+ if (typeof(oldInitSettings) === "function") {
+ oldInitSettings.call(this);
+ }
+
+ this.refreshCookies(false); // The false parameter must be sent since SWFUpload has not initialzed at this point
+ };
+ }(SWFUpload.prototype.initSettings);
+
+ // refreshes the post_params and updates SWFUpload. The sendToFlash parameters is optional and defaults to True
+ SWFUpload.prototype.refreshCookies = function (sendToFlash) {
+ if (sendToFlash === undefined) {
+ sendToFlash = true;
+ }
+ sendToFlash = !!sendToFlash;
+
+ // Get the post_params object
+ var postParams = this.settings.post_params;
+
+ // Get the cookies
+ var i, cookieArray = document.cookie.split(';'), caLength = cookieArray.length, c, eqIndex, name, value;
+ for (i = 0; i < caLength; i++) {
+ c = cookieArray[i];
+
+ // Left Trim spaces
+ while (c.charAt(0) === " ") {
+ c = c.substring(1, c.length);
+ }
+ eqIndex = c.indexOf("=");
+ if (eqIndex > 0) {
+ name = c.substring(0, eqIndex);
+ value = c.substring(eqIndex + 1);
+ postParams[name] = value;
+ }
+ }
+
+ if (sendToFlash) {
+ this.setPostParams(postParams);
+ }
+ };
+
+}