1 dump('entering main/menu.js\n');
3 if (typeof main == 'undefined') main = {};
4 main.menu = function () {
6 JSAN.use('util.error'); this.error = new util.error();
7 JSAN.use('main.window'); this.window = new main.window();
12 main.menu.prototype = {
18 var cmd_close_window = this.w.document.getElementById('cmd_close_window');
20 cmd_close_window.addEventListener('command', function() { obj.w.close(); }, false);
22 var cmd_new_window = this.w.document.getElementById('cmd_new_window');
24 cmd_new_window.addEventListener('command',
25 function() { obj.window.open('/xul/server/main/menu_frame.xul','test' + obj.window.appshell_name_increment++ ,'chrome'); },
28 var cmd_broken = this.w.document.getElementById('cmd_broken');
30 cmd_broken.addEventListener('command', function() { alert('Not Yet Implemented'); }, false);
34 'close_tab' : function (t_idx) {
39 dump('exiting main/menu.js\n');