Changeset: ebe6cb7cedc8 https://sourceforge.net/p/mrbs/hg-code/ci/ebe6cb7cedc8361a06cd7cb60298971235ff3e0e Author: Campbell Morrison <cimorri...@hg.code.sf.net> Date: Tue Apr 11 11:17:21 2017 +0100 Log message:
Restructured diffstat: web/edit_area_room.php | 31 ++++++++++++++++++++----------- 1 files changed, 20 insertions(+), 11 deletions(-) diffs (52 lines): diff -r e81ce4831d23 -r ebe6cb7cedc8 web/edit_area_room.php --- a/web/edit_area_room.php Tue Apr 11 11:11:21 2017 +0100 +++ b/web/edit_area_room.php Tue Apr 11 11:17:21 2017 +0100 @@ -332,21 +332,12 @@ } -function create_fieldset_time_period_settings() +function create_fields_time_settings() { - global $enable_periods, $twentyfourhour_format, $strftime_format; + global $twentyfourhour_format, $strftime_format; global $morningstarts, $morningstarts_minutes, $eveningends, $eveningends_minutes, $resolution; global $default_duration, $default_duration_all_day; - // If we're using JavaScript, don't display the time settings section - // if we're using periods (the JavaScript will display it if we change) - echo "<fieldset id=\"time_settings\"" . - (($enable_periods) ? ' class="js_none"' : '') . - ">\n"; - echo "<legend>" . get_vocab("time_settings"); - echo "<span class=\"js_none\"> (" . get_vocab("times_only") . ")</span>"; - echo "</legend>\n"; - echo "<div class=\"div_time\">\n"; echo "<label>" . get_vocab("area_first_slot_start") . "</label>\n"; @@ -466,6 +457,24 @@ } echo "</div>\n"; echo "</div>\n"; // last_slot +} + + +function create_fieldset_time_period_settings() +{ + global $enable_periods; + + // If we're using JavaScript, don't display the time settings section + // if we're using periods (the JavaScript will display it if we change) + echo "<fieldset id=\"time_settings\"" . + (($enable_periods) ? ' class="js_none"' : '') . + ">\n"; + echo "<legend>" . get_vocab("time_settings"); + echo "<span class=\"js_none\"> (" . get_vocab("times_only") . ")</span>"; + echo "</legend>\n"; + + create_fields_time_settings(); + echo "</fieldset>\n"; } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mrbs-commits mailing list Mrbs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mrbs-commits