[fix] [client script] call cur_frm.cscript.custom_ type functions in the callback of standard functions

This commit is contained in:
Anand Doshi
2013-07-29 19:30:39 +05:30
parent 17082e71f1
commit 1fac2a98cf
68 changed files with 154 additions and 154 deletions

View File

@@ -18,7 +18,7 @@
$(document).ready(function() {
wn.cart.bind_events();
wn.call({
return wn.call({
type: "POST",
method: "website.helpers.cart.get_cart_quotation",
callback: function(r) {
@@ -204,7 +204,7 @@ $.extend(wn.cart, {
},
apply_shipping_rule: function(rule, btn) {
wn.call({
return wn.call({
btn: btn,
type: "POST",
method: "website.helpers.cart.apply_shipping_rule",
@@ -257,7 +257,7 @@ $.extend(wn.cart, {
}
});
wn.call({
return wn.call({
type: "POST",
method: "website.helpers.cart.update_cart_address",
args: {
@@ -288,7 +288,7 @@ $.extend(wn.cart, {
},
place_order: function() {
wn.call({
return wn.call({
type: "POST",
method: "website.helpers.cart.place_order",
callback: function(r) {

View File

@@ -18,7 +18,7 @@ $(document).ready(function() {
var item_code = $('[itemscope] [itemprop="name"]').text().trim();
var qty = 0;
wn.call({
return wn.call({
type: "POST",
method: "website.helpers.product.get_product_info",
args: {