put User Perm Editor into Actions for this Patron
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Dec 2008 21:50:45 +0000 (21:50 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Dec 2008 21:50:45 +0000 (21:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11716 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/display.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index 3add89a..1a0f3da 100644 (file)
@@ -353,6 +353,12 @@ patron.display.prototype = {
                                 }
                             );
                         } 
+                    ],
+                    'cmd_perm_editor' : [
+                        ['command'],
+                        function() {
+                             var frame = obj.right_deck.reset_iframe( urls.XUL_USER_PERM_EDITOR + '?ses=' + window.escape(ses()) + '&usr=' + obj.patron.id(), {}, {});
+                        }
                     ]
                                }
                        }
index 5403e8e..c952323 100644 (file)
                <command id="cmd_patron_retrieve" />
                <command id="cmd_search_form" />
                <command id="cmd_verify_credentials" />
+               <command id="cmd_perm_editor" />
        </commandset>
 
        <box id="patron_display_main" class="my_overflow" />
index 60a1eb2..ef9614c 100644 (file)
@@ -84,6 +84,7 @@
                 <menu label="&staff.patron_navbar.actions.menu.label;" accesskey="&staff.patron_navbar.actions.menu.accesskey;">
                     <menupopup>
                         <menuitem label="&staff.patron_display.verify_password.label;" accesskey="&staff.patron_display.verify_password.accesskey;" command="cmd_verify_credentials"/>
+                        <menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_perm_editor"/>
                     </menupopup>
                 </menu>
             </menubar>