[website] [minor] moving to framework

This commit is contained in:
Rushabh Mehta
2013-09-09 12:17:45 +05:30
parent 46089dbc97
commit c59c4e0699
40 changed files with 49 additions and 61 deletions

View File

@@ -14,6 +14,7 @@ $(document).ready(function() {
.parent().append("<div class='alert alert-warning'>Comments are closed.</div>")
}
$(".add-comment").click(function() {
$(this).toggle(false);
$("#comment-form").toggle();
$("#comment-form input, #comment-form, textarea").val("");
})

View File

@@ -7,7 +7,7 @@ $(document).ready(function() {
wn.cart.bind_events();
return wn.call({
type: "POST",
method: "website.helpers.cart.get_cart_quotation",
method: "selling.utils.cart.get_cart_quotation",
callback: function(r) {
console.log(r);
$("#cart-container").removeClass("hide");
@@ -194,7 +194,7 @@ $.extend(wn.cart, {
return wn.call({
btn: btn,
type: "POST",
method: "website.helpers.cart.apply_shipping_rule",
method: "selling.utils.cart.apply_shipping_rule",
args: { shipping_rule: rule },
callback: function(r) {
if(!r.exc) {
@@ -242,7 +242,7 @@ $.extend(wn.cart, {
return wn.call({
type: "POST",
method: "website.helpers.cart.update_cart_address",
method: "selling.utils.cart.update_cart_address",
args: {
address_fieldname: $address_wrapper.attr("data-fieldname"),
address_name: $(this).attr("data-address-name")
@@ -273,7 +273,7 @@ $.extend(wn.cart, {
place_order: function() {
return wn.call({
type: "POST",
method: "website.helpers.cart.place_order",
method: "selling.utils.cart.place_order",
callback: function(r) {
if(r.exc) {
var msg = "";

View File

@@ -15,7 +15,7 @@ window.get_product_list = function() {
url: "server.py",
dataType: "json",
data: {
cmd: "website.helpers.product.get_product_list",
cmd: "selling.utils.product.get_product_list",
start: window.start,
search: window.search,
product_group: window.product_group

View File

@@ -7,7 +7,7 @@ $(document).ready(function() {
wn.call({
type: "POST",
method: "website.helpers.product.get_product_info",
method: "selling.utils.product.get_product_info",
args: {
item_code: "{{ name }}"
},