[open-ils-commits] r15310 - branches/rel_1_6/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Jan 13 11:29:22 EST 2010


Author: phasefx
Date: 2010-01-13 11:29:19 -0500 (Wed, 13 Jan 2010)
New Revision: 15310

Modified:
   branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_buckets.js
Log:
backport changesets 13524, 13525 for allowing TITLE_LAST_COPY override with batch deletion of copies in copy buckets

Modified: branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_buckets.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_buckets.js	2010-01-13 14:59:47 UTC (rev 15309)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/cat/copy_buckets.js	2010-01-13 16:29:19 UTC (rev 15310)
@@ -488,9 +488,22 @@
                                     copies[i].isdeleted(1);
                                 }
 
-                                var robj = obj.network.simple_request('FM_ACP_FLESHED_BATCH_UPDATE',[ ses(), copies, true]);
+                                var robj = obj.network.simple_request(
+                                    'FM_ACP_FLESHED_BATCH_UPDATE',
+                                    [ ses(), copies, true],
+                                    null, // no callback
+                                    {
+                                        'title' : document.getElementById('catStrings').getString('staff.cat.copy_buckets.batch.error'),
+                                        'overridable_events' : [
+                                            1208 /* TITLE_LAST_COPY */
+                                        ]
+                                    }
+                                );
                                 if (typeof robj.ilsevent != 'undefined') {
                                     switch(Number(robj.ilsevent)) {
+                                        case 1208 /* TITLE_LAST_COPY */ :
+                                            // ignore this
+                                        break;
                                         case 1227 /* COPY_DELETE_WARNING */ : 
                                             var copy;
                                             for (var i = 0; i < copies.length; i++) { if (copies[i].id()==robj.payload) copy = function(a){return a;}(copies[i]); }



More information about the open-ils-commits mailing list