From: Pasi Kallinen Date: Wed, 17 Jul 2013 16:07:45 +0000 (+0300) Subject: Save times in HH:MM format for hours of operation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4b1ef525740b371e1aa5b273d6a3f2fccc0a6534;p=evergreen%2Fequinox.git Save times in HH:MM format for hours of operation When editing Hours of Operation, save the times in HH:MM format, as that is what the database wants. Signed-off-by: Pasi Kallinen Signed-off-by: Dan Wells --- diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index 8d495136c0..2c34a67560 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.html +++ b/Open-ILS/web/conify/global/actor/org_unit.html @@ -471,38 +471,38 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + +
&conify.org_unit.hoo_pane.open_time;&conify.org_unit.hoo_pane.close_time;
&conify.org_unit.hoo_pane.monday;
&conify.org_unit.hoo_pane.tuesday;
&conify.org_unit.hoo_pane.wednesday;
&conify.org_unit.hoo_pane.thursday;
&conify.org_unit.hoo_pane.friday;
&conify.org_unit.hoo_pane.saturday;
&conify.org_unit.hoo_pane.sunday;
diff --git a/Open-ILS/web/conify/global/actor/org_unit.js b/Open-ILS/web/conify/global/actor/org_unit.js index 501193e861..855dc92e49 100644 --- a/Open-ILS/web/conify/global/actor/org_unit.js +++ b/Open-ILS/web/conify/global/actor/org_unit.js @@ -34,6 +34,7 @@ dojo.require('dijit.layout.TabContainer'); dojo.require('dijit.layout.LayoutContainer'); dojo.require('dijit.layout.SplitContainer'); dojo.require('dojox.widget.Toaster'); +dojo.require('dojox.string.sprintf'); dojo.require('dojox.fx'); dojo.require('openils.XUL'); dojo.requireLocalization("openils.conify", "conify"); @@ -61,6 +62,10 @@ function status_update (markup) { if (parent !== window && parent.status_update) parent.status_update( markup ); } +function set_hoo_thisvalue(dow_open, timeval) { + current_ou_hoo[dow_open](dojox.string.sprintf('%02d:%02d', timeval.getHours(), timeval.getMinutes())); +} + function save_org () { new_kid_button.disabled = false;