* change hide footer and header not use hook.

This commit is contained in:
wangyidong
2012-08-28 09:29:32 +00:00
parent 3891ce2ac3
commit b060a6bb41
8 changed files with 42 additions and 16 deletions
+10 -8
View File
@@ -20,14 +20,16 @@ Date.abbrDayNames = ['星期天', '星期一', '星期二', '星期三', '星
Date.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
$(function() {
var time = $('.date').val();
if(!isNaN(time)){
var Y = time.substring(0, 4);
var m = time.substring(4, 6);
var d = time.substring(6, 8);
time = Y + '-' + m + '-' + d;
$('.date').val(time);
}
$('.date').each(function(){
time = $(this).val();
if(!isNaN(time) && time != ''){
var Y = time.substring(0, 4);
var m = time.substring(4, 6);
var d = time.substring(6, 8);
time = Y + '-' + m + '-' + d;
$('.date').val(time);
}
});
startDate = new Date(1970, 1, 1);
$(".date").datePicker({createButton:true, startDate:startDate})