85b0cee94cf4c93f83b91a9440d816ca9381de6b
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / main / menu.js
1 dump('entering main/menu.js\n');
2
3 if (typeof main == 'undefined') main = {};
4 main.menu = function () {
5
6         JSAN.use('util.error'); this.error = new util.error();
7
8         this.w = window;
9 }
10
11 main.menu.prototype = {
12
13         'init' : function() {
14
15                 var obj = this;
16
17                 var cmd_close_window = this.w.document.getElementById('cmd_close_window');
18                         if (cmd_close_window) 
19                                 cmd_close_window.addEventListener('command', function() { obj.w.close(); }, false);
20                         
21                 var cmd_new_window = this.w.document.getElementById('cmd_new_window');
22                         if (cmd_new_window)
23                                 cmd_new_window.addEventListener('command', function() { alert('Not Yet Implemented'); }, false);
24
25                 var cmd_broken = this.w.document.getElementById('cmd_broken');
26                         if (cmd_broken)
27                                 cmd_broken.addEventListener('command', function() { alert('Not Yet Implemented'); }, false);
28                 
29         },
30
31         'close_tab' : function (t_idx) {
32         }
33
34 }
35
36 dump('exiting main/menu.js\n');