[website] [minor] moving to framework
diff --git a/website/templates/js/blog_page.js b/website/templates/js/blog_page.js
index 665dbf4..3d45925 100644
--- a/website/templates/js/blog_page.js
+++ b/website/templates/js/blog_page.js
@@ -14,6 +14,7 @@
.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("");
})
diff --git a/website/templates/js/cart.js b/website/templates/js/cart.js
index 20090ca..63c6463 100644
--- a/website/templates/js/cart.js
+++ b/website/templates/js/cart.js
@@ -7,7 +7,7 @@
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 @@
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 @@
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 @@
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 = "";
diff --git a/website/templates/js/product_list.js b/website/templates/js/product_list.js
index 729499c..2856bde 100644
--- a/website/templates/js/product_list.js
+++ b/website/templates/js/product_list.js
@@ -15,7 +15,7 @@
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
diff --git a/website/templates/js/product_page.js b/website/templates/js/product_page.js
index b8c65ec..b2a122e 100644
--- a/website/templates/js/product_page.js
+++ b/website/templates/js/product_page.js
@@ -7,7 +7,7 @@
wn.call({
type: "POST",
- method: "website.helpers.product.get_product_info",
+ method: "selling.utils.product.get_product_info",
args: {
item_code: "{{ name }}"
},