Subversion Repositories SmartDukaan

Rev

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

Rev 23342 Rev 23886
Line 28... Line 28...
28
    	white-space: nowrap;
28
    	white-space: nowrap;
29
	}
29
	}
30
</style>
30
</style>
31
<script>
31
<script>
32
	$(function() {
32
	$(function() {
33
 
-
 
34
    	var start = moment().subtract(29, 'days');
-
 
35
    	var end = moment();
-
 
36
    	console.log(start);
-
 
37
    	console.log(end);
-
 
38
 
-
 
39
    	function cb(start, end) {
-
 
40
        	$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
-
 
41
   	 	}
-
 
42
 
-
 
43
    	$('#reportrange').daterangepicker({
33
    	$('#reportrange').daterangepicker(getRangedDatePicker(), dateTimeCallback);
44
        	startDate: start,
-
 
45
        	endDate: end,
-
 
46
        	alwaysShowCalendars: true,
-
 
47
        	ranges: {
-
 
48
	           'Today': [moment(), moment()],
-
 
49
	           'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
-
 
50
	           'Last 7 Days': [moment().subtract(6, 'days'), moment()],
-
 
51
	           'Last 30 Days': [moment().subtract(29, 'days'), moment()],
-
 
52
	           'This Month': [moment().startOf('month'), moment().endOf('month')],
-
 
53
	           'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
-
 
54
        	}
-
 
55
    	}, cb);
-
 
56
 
-
 
57
    	cb(start, end);
-
 
58
    
-
 
59
	});
34
	});
60
</script>
35
</script>
61
 
36
 
62
<section class="wrapper">            
37
<section class="wrapper">            
63
	<div class="row">
38
	<div class="row">