Note that this counter shows the number of records in the temporary list/cart,
not just the number of records selected on the page.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
width: 78px;
}
+/* styles for selecting records in the results set */
.result_table_row_selected {
background-color: [% css_colors.item_selected %];
}
+#selected_records_summary {
+ margin-left: 5em;
+}
.result_number {
[% IF rtl == 't' -%]
<div id="record_selector_block" class="hidden">
<input type="checkbox" id="select_all_records"></input>
<label for="select_all_records">[% l('Select [_1] - [_2]', ctx.result_start, ctx.result_stop) %]</label>
+ <span id="selected_records_summary">
+ <span id="selected_records_count">[% ctx.mylist.size %]</span>
+ [% IF ctx.mylist.size == 1; %]
+ [% l('selected title') %]
+ [% ELSE; %]
+ [% l('selected titles') %]
+ [% END; %]
+ <span>
</div>
[% END %]
<table id="result_table_table" title="[% l('Search Results') %]"
var result = req.response;
if (result) {
mylist = result.mylist;
+ document.getElementById('selected_records_count').innerHTML = mylist.length;
}
}
} else {
var result = JSON.parse(req.responseText);
if (result) {
mylist = result.mylist;
+ document.getElementById('selected_records_count').innerHTML = mylist.length;
}
}
}