liuzhen лет назад: 5
Родитель
Сommit
30b2f7acee

+ 6 - 1
WebUI/CallCenterWeb.UI/CommonHtml/Timesq.html

@@ -33,8 +33,13 @@
33 33
 
34 34
             laydate({
35 35
                 elem: '#startTime',
36
-                event: 'focus'
36
+                event: 'focus',
37
+                min:minDate()
37 38
             });
39
+            function minDate(){
40
+			    var now = new Date();
41
+			    return now.getFullYear()+"-" + (now.getMonth()+1) + "-" + now.getDate();
42
+			}
38 43
             var wid = helper.request.queryString("wid");
39 44
 			$(document).ready(function() {
40 45
 				$(".btns").click(function(){

+ 6 - 1
WebUI/CallCenterWeb.UI/CommonHtml/shTime.html

@@ -51,8 +51,13 @@
51 51
 
52 52
             laydate({
53 53
                 elem: '#endtime',
54
-                event: 'focus'
54
+                event: 'focus',
55
+                min:minDate()
55 56
             });
57
+            function minDate(){
58
+			    var now = new Date();
59
+			    return now.getFullYear()+"-" + (now.getMonth()+1) + "-" + now.getDate();
60
+			}
56 61
             var wid = helper.request.queryString("wid");
57 62
              var type;
58 63
 			$(document).ready(function() {