snippet: view plain - save this
1 var oLinksPerChatroomObj = [
2 { name: 'Leave Chat Room',
3 callback:function(){
4 leaveChat();
5 }
6 },
7 { name: 'Delete Chat Room',
8 callback:function(){
9 deleteChat(curSelected);
10 }
11 }
12 ]
13 perChatroomRightClickObj = new Proto.Menu({
14 selector:'.crLink',
15 id: 'perchatroomRc',
16 className: 'menu firefox',
17 fade: true,
18 zIndex: 3003,
19 menuItems: oLinksPerChatroomObj
20 });
21
22
23 var oLinksChatroomObj = [
24 { name: 'Create Chat Room',
25 callback:function(){
26 renderCreateChatWindow();
27 }
28 },
29 { name: 'Search for Chat Room',
30 callback:function(){
31 searchForChatRoom();
32 }
33 }
34 ]
35 chatroomRightClickObj = new Proto.Menu({
36 selector:'.croomTop',
37 id: 'chatroomRc',
38 className: 'menu firefox',
39 fade: true,
40 zIndex: 3002,
41 menuItems: oLinksChatroomObj
42 });
43
44
45
46 var oLinksConversationObj = [
47 { name: 'Close',
48 callback:function(){
49 closeConversationDialog();
50 }
51 }
52 ]
53 conversationRightClickObj = new Proto.Menu({
54 selector:'.conversationTop',
55 id: 'conversationRc',
56 className: 'menu firefox',
57 fade: true,
58 zIndex: 3000,
59 menuItems: oLinksConversationObj
60 });
61
62 var oLinksContactObj = [
63 { name: 'Send Message',
64 callback: function(xh) {
65 onBuddyDblClick();
66 }
67 },
68 { name: 'View Contact Info',
69 callback: function(xh) {
70 viewContactInfoActual(fullAddress);
71 }
72 },
73 {
74 separator: true
75 },
76 { name: 'Delete Contact',
77 callback: function(xh) {
78 deleteContact();
79 }
80 },
81 { name: 'Unblock Contact',
82 callback: function(xh) {
83 unBlockContact(fullAddress);
84 }
85 },
86 { name: 'Block Contact',
87 callback: function(xh){
88 blockContact(fullAddress);
89 }
90 }
91 ]
92
93 contactRightClickObj = new Proto.Menu({
94 selector: '.contextMenuContacts',
95 id: 'contactRc',
96 className: 'menu firefox',
97 fade: true,
98 zIndex: 3000,
99 menuItems: oLinksContactObj
100 });
101
102 var oLinksContactListObj = [
103 { name: 'Shout',
104 callback: function(xh){
105 shoutWindow(curContactList); /*dcj:snippeted changed shoutWindow()
106 => shoutWindow(curContactList)*/
107 },
108 disabled: false
109 },
110 { name: 'Add Contacts',
111 callback: function(xh){
112 new_buddy_dialog();
113 }
114 },
115 {
116 name: 'Add Contact List',
117 callback: function(xh){
118 add_contactlist();
119 }
120 },
121 {
122 name: 'Edit Contact List',
123 callback: function(xh){
124 editContactList();
125 action = 'editContactList';
126 }
127 },
128 {
129 name: 'Delete Contact List',
130 callback: function(xh){
131 deleteContactList();
132 action = 'deleteContactList';
133 }
134 }
135
136 ]
137
138 contactListRightClickObj = new Proto.Menu({
139 selector: '.groupTop',
140 id: 'contactListRc',
141 className: 'menu firefox',
142 fade: true,
143 zIndex: 3001,
144 menuItems: oLinksContactListObj
145 });

0 comments