[open-ils-commits] [GIT] Evergreen ILS branch master updated. ee8d5613cd3bc469678deece795fb43adb0e8f91

Evergreen Git git at git.evergreen-ils.org
Fri Oct 5 16:41:16 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, master has been updated
       via  ee8d5613cd3bc469678deece795fb43adb0e8f91 (commit)
      from  fa15ccb8faf86d999e3c9528d733068357d561d5 (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 ee8d5613cd3bc469678deece795fb43adb0e8f91
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()'>&nbsp;[% 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