new window test
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Nov 2005 19:39:46 +0000 (19:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Nov 2005 19:39:46 +0000 (19:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1953 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/main/menu.js

index 85b0cee..373bbfb 100644 (file)
@@ -4,6 +4,7 @@ if (typeof main == 'undefined') main = {};
 main.menu = function () {
 
        JSAN.use('util.error'); this.error = new util.error();
+       JSAN.use('main.window'); this.window = new main.window();
 
        this.w = window;
 }
@@ -20,7 +21,9 @@ main.menu.prototype = {
                        
                var cmd_new_window = this.w.document.getElementById('cmd_new_window');
                        if (cmd_new_window)
-                               cmd_new_window.addEventListener('command', function() { alert('Not Yet Implemented'); }, false);
+                               cmd_new_window.addEventListener('command', 
+                                       function() { obj.window.open('/xul/server/main/menu_frame.xul','test' + obj.window.appshell_name_increment++ ,'chrome'); },
+                                       false );
 
                var cmd_broken = this.w.document.getElementById('cmd_broken');
                        if (cmd_broken)