Subversion Repositories SmartDukaan

Rev

Rev 25763 | Rev 25862 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25763 Rev 25775
Line 890... Line 890...
890
		dateRangeCallback(moment(),moment());
890
		dateRangeCallback(moment(),moment());
891
		loaderDialogObj = bootbox.dialog({
891
		loaderDialogObj = bootbox.dialog({
892
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
892
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
893
		    show: false	
893
		    show: false	
894
		});
894
		});
895
		starTotal = 5;
-
 
896
		ratings = {
-
 
897
			current : $currentMonthRating,
-
 
898
			last: $lastMonthRating,
-
 
899
			tilldate: $ratingTillDate
-
 
900
		}; 
-
 
901
		for(const rating in ratings) {  
-
 
902
		  // 2
-
 
903
		  const starPercentage = (ratings[rating] / starTotal) * 100;
-
 
904
		  // 3
-
 
905
		  const starPercentageRounded = `${starPercentage}%`;
-
 
906
		  // 4
-
 
907
		  document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded; 
-
 
908
		}
-
 
909
	});
895
	});
-
 
896
	starTotal = 5;
-
 
897
	ratings = {
-
 
898
		current : $currentMonthRating,
-
 
899
		last: $lastMonthRating,
-
 
900
		tilldate: $ratingTillDate
-
 
901
	}; 
-
 
902
	for(const rating in ratings) {  
-
 
903
	  // 2
-
 
904
	  const starPercentage = (ratings[rating] / starTotal) * 100;
-
 
905
	  // 3
-
 
906
	  const starPercentageRounded = `${starPercentage}%`;
-
 
907
	  // 4
-
 
908
	  document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded; 
-
 
909
	}
910
	
910
	
911
	hasGift=$hasGift;
911
	hasGift=$hasGift;
912
	giftItemId = $giftItemId;
912
	giftItemId = $giftItemId;
913
	monthDays=$monthDays;
913
	monthDays=$monthDays;
914
	dayOfMonth = $dayOfMonth;
914
	dayOfMonth = $dayOfMonth;