Index: trunk/extensions/SemanticFormsInputs/SFI_Inputs.php |
— | — | @@ -874,7 +874,7 @@ |
875 | 875 | |
876 | 876 | $other_args["part of dtp"] = true; |
877 | 877 | |
878 | | - $jsAttribs = array(); |
| 878 | + $jsattribs = array(); |
879 | 879 | |
880 | 880 | // if we have to show a reset button |
881 | 881 | if ( array_key_exists( 'show reset button', $other_args ) || |
— | — | @@ -908,9 +908,11 @@ |
909 | 909 | // insert the code of the JS init function into the pages code |
910 | 910 | $wgOut->addScript('<script type="text/javascript">' . $jstext . '</script>'); |
911 | 911 | |
| 912 | + $separator = strpos($cur_value, " "); |
| 913 | + |
912 | 914 | $html = '<span class="inputSpan' . ($is_mandatory ? ' mandatoryFieldSpan' : '') . '">' . |
913 | | - self::jqDatePickerHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args) . " " . |
914 | | - self::timepickerHTML($cur_value, $input_name, $is_mandatory, $is_disabled, $other_args) . |
| 915 | + self::jqDatePickerHTML(substr($cur_value, 0, $separator), $input_name, $is_mandatory, $is_disabled, $other_args) . " " . |
| 916 | + self::timepickerHTML(substr($cur_value, $separator + 1), $input_name, $is_mandatory, $is_disabled, $other_args) . |
915 | 917 | Xml::element("input", |
916 | 918 | array( |
917 | 919 | "id" => "input_{$sfgFieldNum}", |