11 SWFUpload.prototype.initSettings =
function (oldInitSettings) {
13 if (typeof(oldInitSettings) ===
"function") {
14 oldInitSettings.call(
this);
17 this.refreshCookies(
false);
22 SWFUpload.prototype.refreshCookies =
function (sendToFlash) {
23 if (sendToFlash === undefined) {
26 sendToFlash = !!sendToFlash;
29 var postParams = this.settings.post_params;
32 var i, cookieArray = document.cookie.split(
';'), caLength = cookieArray.length, c, eqIndex, name, value;
33 for (i = 0; i < caLength; i++) {
37 while (c.charAt(0) ===
" ") {
38 c = c.substring(1, c.length);
40 eqIndex = c.indexOf(
"=");
42 name = c.substring(0, eqIndex);
43 value = c.substring(eqIndex + 1);
44 postParams[name] = value;