[OPEN-ILS-DEV] Re: PATCH: re-open client window
Bill Ott
bott at grpl.org
Sun May 25 09:32:47 EDT 2008
Here, I was so concerned about the patch and that I had the right diff
data included, I forgot about the formalities.
For posterity.
Developer’s Certificate of Origin 1.1 By making a contribution to this
project, I certify that:
(a) The contribution was created in whole or in part by me and I have
the right to submit it under the open source license indicated in the
file; or
(b) The contribution is based upon previous work that, to the best of my
knowledge, is covered under an appropriate open source license and I
have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the same
open source license (unless I am permitted to submit under a different
license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person
who certified (a), (b) or (c) and I have not modified it; and
(d) In the case of each of (a), (b), or (c), I understand and agree that
this project and the contribution are public and that a record of the
contribution (including all personal information I submit with it,
including my sign-off) is maintained indefinitely and may be
redistributed consistent with this project or the open source license
indicated in the file.
-------------- next part --------------
Index: Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- Open-ILS/xul/staff_client/chrome/content/main/main.js (revision 9692)
+++ Open-ILS/xul/staff_client/chrome/content/main/main.js (working copy)
@@ -240,6 +240,25 @@
},
false
);
+
+ var y = document.getElementById('new_window_btn');
+ y.setAttribute('label','Open New Window');
+ y.addEventListener(
+ 'command',
+ function() {
+ if (G.data.session) {
+ try {
+ G.window.open('chrome://open_ils_staff_client/content/main/menu_frame.xul?server=' +
+ G.data.server,'main','chrome,resizable' );
+
+ } catch(E) { alert(E); }
+ } else {
+ alert ('Please login first!')
+ }
+ },
+ false
+ );
+
if ( found_ws_info_in_Achrome() ) {
//var hbox = x.parentNode; var b = document.createElement('button');
//b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
-------------- next part --------------
Index: Open-ILS/xul/staff_client/chrome/content/main/main.xul
===================================================================
--- Open-ILS/xul/staff_client/chrome/content/main/main.xul (revision 9692)
+++ Open-ILS/xul/staff_client/chrome/content/main/main.xul (working copy)
@@ -83,6 +83,9 @@
<hbox>
<label id="version_label"/>
<button id="about_btn"/>
+
+ <label id="new_window_label"/>
+ <button id="new_window_btn"/>
</hbox>
<label value=" "/>
More information about the Open-ils-dev
mailing list