]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/js/ui/default/conify/global/acq/edi_account.js
LP#1329920: (follow-up) set searchFormat as well
[working/Evergreen.git] / Open-ILS / web / js / ui / default / conify / global / acq / edi_account.js
1 dojo.require('openils.widget.AutoGrid');
2 dojo.require('dijit.form.FilteringSelect');
3 dojo.require('openils.PermaCrud');
4
5 function draw() {
6     if (! targetId) {
7         pListGrid.loadAll({order_by:{acqedi : "id"}});       
8         // The following code does no good ...
9 //        pListGrid.onPostCreate = function(fmObject) {
10 //            location.href = location.href + '/' + fmObject.id();
11 //        };
12         return;
13     }
14    
15     var pcrud = new openils.PermaCrud();
16     pcrud.retrieve('acqedi', targetId, {
17         // ... because this code here does nothing yet
18         oncomplete : function(r) {
19             console.log('edi_account is' + js2JSON(openils.Util.readResponse(r)));
20         }
21     });
22 }
23
24 openils.Util.addOnLoad(draw);
25