[open-ils-commits] r18851 - in trunk/Open-ILS/web: js/ui/default/serial templates/default/serial (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 29 11:25:41 EST 2010
Author: senator
Date: 2010-11-29 11:25:38 -0500 (Mon, 29 Nov 2010)
New Revision: 18851
Modified:
trunk/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js
trunk/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2
Log:
Serials: routing list display glitchiness. Previously, the display did not
correctly handle a mix of received items with and without routing lists.
Modified: trunk/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js 2010-11-28 15:11:55 UTC (rev 18850)
+++ trunk/Open-ILS/web/js/ui/default/serial/print_routing_list_users.js 2010-11-29 16:25:38 UTC (rev 18851)
@@ -10,6 +10,10 @@
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();
Modified: trunk/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 2010-11-28 15:11:55 UTC (rev 18850)
+++ trunk/Open-ILS/web/templates/default/serial/print_routing_list_users.tt2 2010-11-29 16:25:38 UTC (rev 18851)
@@ -7,8 +7,8 @@
<div class="item-dist-and-stream">
(<span name="distribution_holding_lib"></span>)
<span name="distribution_label"></span> /
- <span name="stream_routing_label"></span>
- <em name="stream_id_container">
+ <span name="stream_routing_label" class="hidden"></span>
+ <em name="stream_id_container" class="hidden">
Unlabeled stream ID #<span name="stream_id"></span>
</em>
</div>
More information about the open-ils-commits
mailing list