andre 4 سال پیش
والد
کامیت
445d7b6998
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      js/scripts.js

+ 2 - 2
js/scripts.js

@@ -3820,7 +3820,7 @@ function updateProductTotalMessage(billingcycle) {
     switch(billingcycle) {
     switch(billingcycle) {
         case 'monthly':
         case 'monthly':
             console.log(billingcycle);
             console.log(billingcycle);
-            let days = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            days = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             console.log(days);
             console.log(days);
             jQuery('#producttotalmessage').html('Monatlich');
             jQuery('#producttotalmessage').html('Monatlich');
             break;
             break;
@@ -3834,7 +3834,7 @@ function updateProductTotalMessage(billingcycle) {
             break;
             break;
         case 'annually':
         case 'annually':
             console.log(billingcycle);
             console.log(billingcycle);
-            let days = daysIntoYear(new Date(now.getFullYear() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            days = daysIntoYear(new Date(now.getFullYear() + 1, 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
             jQuery('#producttotalmessage').html('Jährlich');
             jQuery('#producttotalmessage').html('Jährlich');
             break;
             break;
     }
     }