andre 4 лет назад
Родитель
Сommit
310c2d41ab
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      js/scripts.js

+ 4 - 4
js/scripts.js

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