This commit is contained in:
wangyidong
2017-02-14 13:38:24 +08:00
parent 4610fdad32
commit ef2cc89e5a
3 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -145,8 +145,7 @@ class product extends control
setcookie('productStoryOrder', $orderBy, $this->config->cookieLife, $this->config->webRoot);
/* Append id for secend sort. */
/* set rule to number when order by plan. */
$sort = $this->loadModel('common')->appendOrder(strpos($orderBy, 'plan') !== false ? str_replace('plan', '`plan`+0', $orderBy) : $orderBy);
$sort = $this->loadModel('common')->appendOrder($orderBy);
/* Load pager. */
$this->app->loadClass('pager', $static = true);
+1 -1
View File
@@ -33,5 +33,5 @@ function computeEndDate(delta)
}
endDate = beginDate.addDays(delta - 1).toString('yyyy-MM-dd');
$('#end').val(endDate);
$('#end').val(endDate).datetimepicker('update')
}
+1 -1
View File
@@ -111,7 +111,7 @@ function computeEndDate(delta)
}
endDate = beginDate.addDays(delta - 1).toString('yyyy-MM-dd');
$('#end').val(endDate);
$('#end').val(endDate).datetimepicker('update');
computeWorkDays();
}