File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2424 dl .defs { margin : 10px 0 10px 40px ; }
2525 dl .defs dt { font-weight : bold; line-height : 20px ; margin : 10px 0 0 0 ; }
2626 dl .defs dd { margin : -20px 0 10px 160px ; padding-bottom : 10px ; border-bottom : solid 1px # eee ;}
27- pre { font-size : 12px ; padding : 0 0 0 10px ; margin : 10px 0 ; border-left : solid 5px # 9EC45F ; overflow : auto; }
27+ pre { font-size : 12px ; line-height : 16 px ; padding : 5 px 5 px 5 px 10px ; margin : 10px 0 ; background-color : # e4f4d4 ; border-left : solid 5px # 9EC45F ; overflow : auto; }
2828
2929 .wrapper { background-color : # ffffff ; width : 800px ; border : solid 1px # eeeeee ; padding : 20px ; margin : 0 auto; }
3030 # tabs { margin : 20px -20px ; border : none; }
@@ -468,7 +468,7 @@ <h3 id="basic_examples">Basic Initializations</h3>
468468 < input type ="text " name ="basic_example_2 " id ="basic_example_2 " value ="" />
469469 </ div >
470470< pre >
471- $('#basic_example_2').timepicker({} );
471+ $('#basic_example_2').timepicker();
472472</ pre >
473473 </ div >
474474
@@ -581,7 +581,7 @@ <h3 id="slider_examples">Slider Modifications</h3>
581581 < div class ="example-container ">
582582 < p > Add sliderAccess plugin for touch devices:</ p >
583583 < div >
584- < div id ="slider_example_3 "> </ div >
584+ < input type =" text " name =" slider_example_3 " id ="slider_example_3 " value ="" / >
585585 </ div >
586586< pre >
587587$('#slider_example_3').datetimepicker({
@@ -632,6 +632,7 @@ <h3 id="alt_examples">Alternate Fields</h3>
632632$('#alt_example_3').datetimepicker({
633633 altField: "#alt_example_3_alt",
634634 altFieldTimeOnly: false,
635+ altFormat: "yy-mm-dd",
635636 altTimeFormat: "h:m",
636637 altSeparator: " @ "
637638});
Original file line number Diff line number Diff line change @@ -909,10 +909,10 @@ $.fn.extend({
909909 //########################################################################
910910 timepicker : function ( o ) {
911911 o = o || { } ;
912- var tmp_args = arguments ;
913-
912+ var tmp_args = Array . prototype . slice . call ( arguments ) ;
913+
914914 if ( typeof o == 'object' ) { tmp_args [ 0 ] = $ . extend ( o , { timeOnly : true } ) ; }
915-
915+
916916 return $ ( this ) . each ( function ( ) {
917917 $ . fn . datetimepicker . apply ( $ ( this ) , tmp_args ) ;
918918 } ) ;
You can’t perform that action at this time.
0 commit comments