If you're using batch receive, and you have two copies (and therefore
two streams) that you're receiving with the Routing List? checkbox
checked, but only one of those streams actually has a routing list,
you'll note before this patch is applied that you get an extra page of
blank paper if you print the routing list that pops up.
This fixes that.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
var self = this;
this.render = function() {
+ var rendered_something = false;
+
for (var i = 0; i < this.streams.length; i++) {
var stream = this.streams[i];
this.render_users(stream, list);
- if (i) {
+ if (rendered_something) {
dojo.create(
"hr",
{"style": "page-break-after: always"}, this.target, "last"
}
dojo.place(list, this.target, "last");
+ rendered_something = true;
}
return this; /* for chaining */