save columns for patron search
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 26 Aug 2006 23:41:35 +0000 (23:41 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 26 Aug 2006 23:41:35 +0000 (23:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5712 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/search_result.js
Open-ILS/xul/staff_client/server/patron/search_result.xul
Open-ILS/xul/staff_client/server/patron/search_result_overlay.xul

index e94fd17..7fb27ff 100644 (file)
@@ -127,6 +127,16 @@ patron.search_result.prototype = {
                                                        }
                                                }
                                        ],
+                                       'cmd_save_cols' : [
+                                               ['command'],
+                                               function() {
+                                                       try {
+                                                               obj.list.save_columns();
+                                                       } catch(E) {
+                                                               obj.error.standard_unexpected_error_alert('patron search saving columns',E);
+                                                       }
+                                               }
+                                       ],
                                }
                        }
                );
index aa19543..5f70b3b 100644 (file)
@@ -72,6 +72,7 @@
                <command id="cmd_patron_info" />
                <command id="cmd_search_print" />
                <command id="cmd_sel_clip" disabled="true"/>
+               <command id="cmd_save_cols" />
        </commandset>
 
        <box id="patron_search_result_main" />
index 1a9e212..b595f4e 100644 (file)
@@ -14,6 +14,7 @@
                        <tree id="patron_list" flex="1" enableColumnDrag="true" seltype="multiple"/>
                        <hbox>
                                <spacer flex="1"/>
+                               <button label="Save Columns" command="cmd_save_cols"/>
                                <button label="Copy to Clipboard" command="cmd_sel_clip"/>
                                <button label="Print" command="cmd_search_print" />
                        </hbox>