remove console.log in js

This commit is contained in:
Manuel Raynaud
2014-02-08 10:03:30 +01:00
parent ecfed6f92a
commit 69c746537e
2 changed files with 5 additions and 14 deletions

View File

@@ -31,14 +31,11 @@ class OrderQuery extends BaseOrderQuery
$stats = array(); $stats = array();
for($day=1; $day<=$numberOfDay; $day++) { for($day=1; $day<=$numberOfDay; $day++) {
$dayAmount = 0; $dayAmount = self::getSaleStats(
foreach(self::create() new \DateTime(sprintf('%s-%s-%s', $year, $month, $day)),
->filterByStatusId(array(2,3,4), Criteria::IN) new \DateTime(sprintf('%s-%s-%s', $year, $month, $day)),
->filterByCreatedAt(sprintf("%s-%s-%s 00:00:00", $year, $month, $day), Criteria::GREATER_EQUAL) true
->filterByCreatedAt(sprintf("%s-%s-%s 23:59:59", $year, $month, $day), Criteria::LESS_EQUAL) );
->find() as $dayOrders) {
$dayAmount += $dayOrders->getTotalAmount();
}
$stats[] = array($day-1, $dayAmount); $stats[] = array($day-1, $dayAmount);
} }

View File

@@ -336,7 +336,6 @@ jQuery(function($){
}); });
function retrieveJQPlotJson(month, year, callback) { function retrieveJQPlotJson(month, year, callback) {
console.log(month, year);
$.getJSON(url, {month: month, year: year}) $.getJSON(url, {month: month, year: year})
.done(function(data) { .done(function(data) {
@@ -386,17 +385,12 @@ jQuery(function($){
// Init jQPlot // Init jQPlot
var series = initJqplotData(jQplotData); var series = initJqplotData(jQplotData);
console.log('END_INIT', series);
// Start jQPlot // Start jQPlot
if(jQPlotInstance) { if(jQPlotInstance) {
jQPlotInstance.destroy(); jQPlotInstance.destroy();
console.log('OLD_DELETED');
} }
jQPlotInstance = $.jqplot("jqplot", series, jQPlotsOptions); jQPlotInstance = $.jqplot("jqplot", series, jQPlotsOptions);
console.log('END_LAUNCH');
$(window).bind('resize', function(event, ui) { $(window).bind('resize', function(event, ui) {
jQPlotInstance.replot( { resetAxes: true } ); jQPlotInstance.replot( { resetAxes: true } );
}); });