copy/paste-o's, remove (near) duplicate code
authorJason Etheridge <jason@esilibrary.com>
Tue, 26 Jul 2011 12:31:32 +0000 (08:31 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 20 Sep 2011 15:32:09 +0000 (11:32 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/acq/picklist/user_request.tt2
Open-ILS/web/js/ui/default/acq/picklist/user_request.js

index 3622a60..648a791 100644 (file)
@@ -26,7 +26,6 @@
                     editStyle='pane'
                     autoHeight='true'
                     defaultCellWidth='"auto"'
-                    suppressFields="['id']"
                     showPaginator='true'
                     showColumnPicker='true'
                     columnPickerPrefix='"acq.picklist.user_request"'>
index cf75f52..d3f4f63 100644 (file)
@@ -98,24 +98,6 @@ function viewPicklist() {
     location.href = oilsBasePath + "/acq/picklist/view/" + lineitem.picklist();
 }
 
-function fooPicklist() {
-    if (aur_obj.lineitem()) {
-        viewPicklist();
-    } else {
-        addToPicklist();
-    }
-}
-
-function viewPicklist() {
-    var lineitem = fieldmapper.standardRequest(
-        [ 'open-ils.acq', 'open-ils.acq.lineitem.retrieve' ],
-        {
-            params: [openils.User.authtoken, aur_obj.lineitem()]
-        }
-    );
-    location.href = oilsBasePath + "/acq/picklist/view/" + lineitem.picklist();
-}
-
 function addToPicklist() {
     // reqId, from detail view
     location.href = oilsBasePath + "/acq/picklist/brief_record?ur=" + reqId + "&prepop=" + encodeURIComponent(js2JSON({