aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/disabled.js
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-02-02 15:02:53 +0800
committeryiminghe <yiminghe@gmail.com>2016-02-02 15:02:53 +0800
commitc4746a04e2125ce13d17dbc5111aab92e85f46c7 (patch)
tree758b1f05a98d98f9591c15593647e9351791af3c /examples/disabled.js
parent2ddd3f1837470a5305ca788d8b45fe63e68e5cb2 (diff)
downloadtime-picker-c4746a04e2125ce13d17dbc5111aab92e85f46c7.tar.gz
time-picker-c4746a04e2125ce13d17dbc5111aab92e85f46c7.tar.zst
time-picker-c4746a04e2125ce13d17dbc5111aab92e85f46c7.zip
lint
Diffstat (limited to 'examples/disabled.js')
-rw-r--r--examples/disabled.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/disabled.js b/examples/disabled.js
index 4b7c5eb..b650448 100644
--- a/examples/disabled.js
+++ b/examples/disabled.js
@@ -39,12 +39,12 @@ function disabledHours() {
39 39
40function disabledMinutes(h) { 40function disabledMinutes(h) {
41 switch (h) { 41 switch (h) {
42 case 9: 42 case 9:
43 return generateOptions(60, [30]); 43 return generateOptions(60, [30]);
44 case 21: 44 case 21:
45 return generateOptions(60, [0]); 45 return generateOptions(60, [0]);
46 default: 46 default:
47 return generateOptions(60, [0, 30]); 47 return generateOptions(60, [0, 30]);
48 } 48 }
49} 49}
50 50
@@ -60,6 +60,6 @@ ReactDom.render(
60 onChange={onChange} 60 onChange={onChange}
61 disabledHours={disabledHours} 61 disabledHours={disabledHours}
62 disabledMinutes={disabledMinutes} 62 disabledMinutes={disabledMinutes}
63 disabledSeconds={disabledSeconds} />, 63 disabledSeconds={disabledSeconds}/>,
64 document.getElementById('__react-content') 64 document.getElementById('__react-content')
65); 65);