spawn buckets interface from copy status interface
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Feb 2006 07:29:33 +0000 (07:29 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 21 Feb 2006 07:29:33 +0000 (07:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3141 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/copy_status.js

index 37fa1f0..ab7fef8 100644 (file)
@@ -104,7 +104,22 @@ circ.copy_status.prototype = {
                                        'sel_bucket' : [
                                                ['command'],
                                                function() {
-                                                       alert('Not Yet Implemented');
+                                                       JSAN.use('util.functional');
+                                                       JSAN.use('util.window'); var win = new util.window();
+                                                       win.open( 
+                                                               xulG.url_prefix(urls.XUL_COPY_BUCKETS) 
+                                                               + '?session=' + window.escape(obj.session)
+                                                               + '&copy_ids=' + js2JSON(
+                                                                       util.functional.map_list(
+                                                                               obj.selection_list,
+                                                                               function (o) {
+                                                                                       return o[0];
+                                                                               }
+                                                                       )
+                                                               ),
+                                                               'sel_bucket_win' + win.window_name_increment(),
+                                                               'chrome,resizable,modal,center'
+                                                       );
                                                }
                                        ],
                                        'copy_status_barcode_entry_textbox' : [