From fb4f2ee82e747f338bb52ff121c50eea7e406488 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 17 Jul 2013 19:07:45 +0300 Subject: [PATCH] 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 --- Open-ILS/web/conify/global/actor/org_unit.html | 28 +++++++++++++------------- Open-ILS/web/conify/global/actor/org_unit.js | 5 +++++ 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/Open-ILS/web/conify/global/actor/org_unit.html b/Open-ILS/web/conify/global/actor/org_unit.html index 6235e7fd47..878731f06b 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; -- 2.11.0