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
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();
<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>