Fix more gateway errors in URLs
This commit is contained in:
parent
4fbadb84bf
commit
c3d5b10c8a
1 changed files with 4 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ WebGUI.VendorPayout = function ( containerId ) {
|
||||||
// Submit button
|
// Submit button
|
||||||
this.submitPayoutsButton = new YAHOO.widget.Button({ label: 'Submit Scheduled Payouts', container: this.buttonDiv });
|
this.submitPayoutsButton = new YAHOO.widget.Button({ label: 'Submit Scheduled Payouts', container: this.buttonDiv });
|
||||||
this.submitPayoutsButton.on( 'click', function () {
|
this.submitPayoutsButton.on( 'click', function () {
|
||||||
YAHOO.util.Connect.asyncRequest( 'GET', '/?shop=vendor;method=submitScheduledPayouts', {
|
YAHOO.util.Connect.asyncRequest( 'GET', '?shop=vendor;method=submitScheduledPayouts', {
|
||||||
success: obj.initialize,
|
success: obj.initialize,
|
||||||
scope: obj
|
scope: obj
|
||||||
} );
|
} );
|
||||||
|
|
@ -56,7 +56,7 @@ WebGUI.VendorPayout.prototype.initVendorList = function () {
|
||||||
];
|
];
|
||||||
|
|
||||||
// setup data source
|
// setup data source
|
||||||
var url = '/?shop=vendor;method=vendorTotalsAsJSON;';
|
var url = '?shop=vendor;method=vendorTotalsAsJSON;';
|
||||||
this.vendorDataSource = new YAHOO.util.DataSource( url );
|
this.vendorDataSource = new YAHOO.util.DataSource( url );
|
||||||
this.vendorDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
|
this.vendorDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
|
||||||
this.vendorDataSource.responseSchema = {
|
this.vendorDataSource.responseSchema = {
|
||||||
|
|
@ -186,7 +186,7 @@ WebGUI.VendorPayout.prototype.initPayoutDetails = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
var status = record.getData( 'vendorPayoutStatus' ) === 'NotPaid' ? 'Scheduled' : 'NotPaid';
|
var status = record.getData( 'vendorPayoutStatus' ) === 'NotPaid' ? 'Scheduled' : 'NotPaid';
|
||||||
var url = '/?shop=vendor;method=setPayoutStatus' + ';itemId=' + record.getData( 'itemId' ) + ';status=' + status;
|
var url = '?shop=vendor;method=setPayoutStatus' + ';itemId=' + record.getData( 'itemId' ) + ';status=' + status;
|
||||||
YAHOO.util.Connect.asyncRequest( 'post', url, callback );
|
YAHOO.util.Connect.asyncRequest( 'post', url, callback );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
@ -204,7 +204,7 @@ WebGUI.VendorPayout.prototype.initButtons = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
var postdata = itemIds.join('&');
|
var postdata = itemIds.join('&');
|
||||||
var url = '/?shop=vendor&method=setPayoutStatus&status=' + status;
|
var url = '?shop=vendor&method=setPayoutStatus&status=' + status;
|
||||||
var callback = {
|
var callback = {
|
||||||
success: function (o) {
|
success: function (o) {
|
||||||
this.refreshItemDataTable();
|
this.refreshItemDataTable();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue