Changeset 11834
- Timestamp:
- Jul 26, 2011, 6:34:36 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_protocols/rest_handler.php
r8728 r11834 42 42 } 43 43 } 44 if ( empty($method) && isset($_GET['method']) ) 45 { 46 $method = $_GET['method']; 47 } 44 48 45 49 if ( empty($method) ) -
trunk/themes/default/js/rating.js
r11827 r11834 62 62 "pwg.images.rate", {image_id: gRatingOptions.image_id, rate: rateButton.initialRateValue } , 63 63 { 64 method: "POST", 64 65 onFailure: function(num, text) { 65 66 alert(num + " " + text); -
trunk/themes/default/js/scripts.js
r8449 r11834 61 61 this.xhr.onreadystatechange = pwgBind(this, this.onStateChange); 62 62 63 var url = this.urlRoot+"ws.php?format=json ";63 var url = this.urlRoot+"ws.php?format=json&method="+method; 64 64 65 var body = " method="+method;65 var body = ""; 66 66 if (parameters) 67 67 { … … 71 71 { 72 72 for (var i=0; i<parameters[prop].length; i++) 73 body += "&"+prop+"[]="+encodeURIComponent(parameters[prop][i]);73 body += prop+"[]="+encodeURIComponent(parameters[prop][i])+"&"; 74 74 } 75 75 else 76 body += "&"+prop+"="+encodeURIComponent(parameters[prop]);76 body += prop+"="+encodeURIComponent(parameters[prop])+"&"; 77 77 } 78 78 }
Note: See TracChangeset
for help on using the changeset viewer.