Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[ljcom] r10023: LJSV-1395: Hardcoded texts transfer to t...

Committer: pkornilov
LJSV-1395: Hardcoded texts transfer to translate system: Virtual gift added to your cart.
U   trunk/htdocs/js/widget_ippu/addvgift.js
Modified: trunk/htdocs/js/widget_ippu/addvgift.js
===================================================================
--- trunk/htdocs/js/widget_ippu/addvgift.js	2011-02-11 06:08:55 UTC (rev 10022)
+++ trunk/htdocs/js/widget_ippu/addvgift.js	2011-02-11 07:34:11 UTC (rev 10023)
@@ -30,11 +30,9 @@
   },
 
   onData: function (data) {
-    var success;
-    if (data.res && data.res.success) success = data.res.success;
-    if (success) {
+    if (data.res && data.res.success) {
       ShopVGift.cart.refreshCart();
-      LJ_IPPU.showNote("Virtual gift added to your cart.");
+      LJ_IPPU.showNote(data.res.message);
       this.ippu.hide();
     }
   },

Tags: js, ljcom, lusever
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments