Changeset 8449 for trunk/themes/default/js/scripts.js
- Timestamp:
- Jan 3, 2011, 6:28:08 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/scripts.js
r7957 r8449 78 78 } 79 79 80 if (this.options.method == "POST" ) 81 this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 82 else 80 if (this.options.method != "POST" ) 83 81 { 84 82 url += "&"+body; … … 86 84 } 87 85 this.xhr.open(this.options.method, url, this.options.async); 86 if (this.options.method == "POST" ) 87 this.xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 88 88 try { 89 89 this.xhr.send(body);
Note: See TracChangeset
for help on using the changeset viewer.