ACQ li ident apply link acq-order-ident-rebase
authorBill Erickson <berick@esilibrary.com>
Mon, 11 Mar 2013 19:33:15 +0000 (15:33 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 11 Mar 2013 19:54:47 +0000 (15:54 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Conflicts:
Open-ILS/src/templates/acq/common/li_table.tt2

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/acq/common/li_table.tt2
Open-ILS/web/js/ui/default/acq/common/li_table.js

index 6dc2bbc..ae6a3af 100644 (file)
             <tbody style='font-weight:bold;border:1px solid #aaa;'>
                 <tr>
                     <td><span><a id='acq-lit-select-toggle' href='javascript:void(0);'>&#x2713</a></span></td>
-                    <td>[% l('Line Items') %]</td>
+                    <td>
+                        [% l('Line Items') %]
+                        <span style='padding-left: 10px;'>
+                            <a href='javascript:;' 
+                                id='acq-lit-apply-idents'>
+                                [% l('Apply Order Identifiers') %]
+                            </a>
+                        </span>
+                    </td>
                     <td>[% l('Items') %]</td>
                     <td>[% l('Notes') %]</td>
                     <td>[% l('Actions') %]</td>
index 8b24065..0114f87 100644 (file)
@@ -83,10 +83,11 @@ function AcqLiTable() {
     );
     this.vlAgent = new VLAgent();
 
-    /* XXX TESTING XXX */
-    dojo.byId('acq-lit-apply-changes').onclick = function() {
-        self.applyOrderIdentValues();
-    };
+    if (dojo.byId('acq-lit-apply-idents')) {
+        dojo.byId('acq-lit-apply-idents').onclick = function() {
+            self.applyOrderIdentValues();
+        };
+    }
 
     this.focusLineitem = new openils.CGI().param('focus_li');