From e75deac752f422b6aa77f9dd72b4a56bcb728c8a Mon Sep 17 00:00:00 2001 From: Joseph Lewis Date: Tue, 21 Jun 2011 11:26:16 -0600 Subject: [PATCH] DOM cleanup on circ_matrix. Signed-off-by: Joseph Lewis --- .../conify/global/config/circ_matrix_matchpoint.js | 14 ++++++++ .../global/config/circ_matrix_matchpoint.tt2 | 41 ++++++++-------------- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js b/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js index 6e8dd508ea..1549e5cec1 100644 --- a/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js +++ b/Open-ILS/web/js/ui/default/conify/global/config/circ_matrix_matchpoint.js @@ -207,3 +207,17 @@ function applyCircModChanges() { openils.Util.addOnLoad(load); +function format_hard_due_date(name, id) { + var item=this.grid.getItem(id); + if(!item) return name; + switch (this.grid.store.getValue(this.grid.getItem(id), 'hard_due_date')) { + case null : + case undefined : + case 'unset' : + return name; + default: + return "" + name + ""; + } +} \ No newline at end of file diff --git a/Open-ILS/web/templates/default/conify/global/config/circ_matrix_matchpoint.tt2 b/Open-ILS/web/templates/default/conify/global/config/circ_matrix_matchpoint.tt2 index bd19e7ee64..6941bcefc1 100644 --- a/Open-ILS/web/templates/default/conify/global/config/circ_matrix_matchpoint.tt2 +++ b/Open-ILS/web/templates/default/conify/global/config/circ_matrix_matchpoint.tt2 @@ -1,7 +1,7 @@ [% ctx.page_title = 'Circulation Policy Configuration' %] [% WRAPPER default/base.tt2 %] - -
+ [% END %] -- 2.11.0