refactor
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Jun 2006 05:05:18 +0000 (05:05 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 27 Jun 2006 05:05:18 +0000 (05:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4802 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_buckets.js

index 199ad7e..89e2364 100644 (file)
@@ -306,22 +306,15 @@ cat.copy_buckets.prototype = {
                                                ['command'],
                                                function() {
                                                        try {
-                                                               JSAN.use('util.functional');
-                                                               JSAN.use('util.window'); var win = new util.window();
-                                                               win.open(
-                                                                       urls.XUL_COPY_EDITOR 
-                                                                       + '?copy_ids=' + window.escape( js2JSON(
-                                                                               util.functional.map_list(
-                                                                                       obj.list2.dump_retrieve_ids(),
-                                                                                       function (o) {
-                                                                                               return JSON2js(o)[0]; // acp_id
-                                                                                       }
-                                                                               )
-                                                                       ) )
-                                                                       + '&single_edit=1'
-                                                                       + '&handle_update=1',
-                                                                       'batch_copy_editor_win_' + win.window_name_increment(),
-                                                                       'chrome,resizable,modal'
+                                                               JSAN.use('cat.util');
+                                                               cat.util.spawn_copy_editor(
+                                                                       util.functional.map_list(
+                                                                               obj.list2.dump_retrieve_ids(),
+                                                                               function (o) {
+                                                                                       return JSON2js(o)[0]; // acp_id
+                                                                               }
+                                                                       ),
+                                                                       true
                                                                );
                                                                obj.render_pending_copies(); // FIXME -- need a generic refresh for lists
                                                                setTimeout(