[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. c387ad7febf7f3ce9049187e18016fc5aa108e80
Evergreen Git
git at git.evergreen-ils.org
Fri Oct 5 16:41:29 EDT 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_3 has been updated
via c387ad7febf7f3ce9049187e18016fc5aa108e80 (commit)
from 33c0f8439f15cb13a0c59adfd8702eb1f68b803f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c387ad7febf7f3ce9049187e18016fc5aa108e80
Author: Bill Erickson <berick at esilibrary.com>
Date: Fri Sep 28 16:53:05 2012 -0400
"Select All" option in invoice search results
Adds a new Select All checkbox along the top of the invoice search
results page.
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/src/templates/acq/invoice/view.tt2 b/Open-ILS/src/templates/acq/invoice/view.tt2
index c1a7aa7..27f2916 100644
--- a/Open-ILS/src/templates/acq/invoice/view.tt2
+++ b/Open-ILS/src/templates/acq/invoice/view.tt2
@@ -261,6 +261,9 @@
</td>
</tr></table>
</div> <!-- end search form -->
+ <div style='border-bottom:1px solid #888;'>
+ <input type='checkbox' onclick='selectSearchResults()'> [% l('Select All') %]</input>
+ </div>
<div id='acq-unified-results-no_results'>
<b>[% l('No Results') %]</b>
</div>
diff --git a/Open-ILS/web/js/ui/default/acq/invoice/view.js b/Open-ILS/web/js/ui/default/acq/invoice/view.js
index bd1ff0a..2036f6f 100644
--- a/Open-ILS/web/js/ui/default/acq/invoice/view.js
+++ b/Open-ILS/web/js/ui/default/acq/invoice/view.js
@@ -411,11 +411,19 @@ function addSelectedToInvoice() {
doAttachLi(true);
}
+allResSelected = false;
function clearSearchResTable() {
+ allResSelected = false;
while (resultsTbody.childNodes[0])
resultsTbody.removeChild(resultsTbody.childNodes[0]);
}
+function selectSearchResults() {
+ allResSelected = !allResSelected;
+ dojo.query('[name=search-results-checkbox]').forEach(
+ function(input) { input.checked = allResSelected });
+}
+
function updateTotalCost() {
var totalCost = 0;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/acq/invoice/view.tt2 | 3 +++
Open-ILS/web/js/ui/default/acq/invoice/view.js | 8 ++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list