From 7518d0d1893fadce70d70fe802af5b6602e4fde6 Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 29 Nov 2010 16:25:38 +0000 Subject: [PATCH] Serials: routing list display glitchiness. Previously, the display did not correctly handle a mix of received items with and without routing lists. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18851 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/serial/print_routing_list_users.js | 4 ++++ Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js b/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js index 014f6451d..b8b05e7a4 100644 --- a/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js +++ b/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js @@ -10,6 +10,10 @@ function ListRenderer() { this.render = function() { for (var i = 0; i < this.streams.length; i++) { var stream = this.streams[i]; + + if (!this.users_by_stream[stream.id()]) + continue; /* no users on this stream */ + var list = dojo.clone(this.list_template); n("title", list).innerHTML = this.mvr.title(); n("issuance_label", list).innerHTML = this.issuance.label(); diff --git a/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 b/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 index c96da8353..31d76c1cd 100644 --- a/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 +++ b/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 @@ -7,8 +7,8 @@
() / - - + +
-- 2.11.0