Diffstat (limited to 'frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js index 5a91d83..3feed3d 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js | |||
@@ -1,102 +1,100 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 25 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 26 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 27 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
30 | 28 | ||
31 | //############################################################################# | 29 | //############################################################################# |
32 | 30 | ||
33 | Clipperz.PM.Components.Panels.ContactsPanel = function(anElement, args) { | 31 | Clipperz.PM.Components.Panels.ContactsPanel = function(anElement, args) { |
34 | args = args || {}; | 32 | args = args || {}; |
35 | 33 | ||
36 | Clipperz.PM.Components.Panels.ContactsPanel.superclass.constructor.call(this, anElement, args); | 34 | Clipperz.PM.Components.Panels.ContactsPanel.superclass.constructor.call(this, anElement, args); |
37 | 35 | ||
38 | this.render(); | 36 | this.render(); |
39 | 37 | ||
40 | return this; | 38 | return this; |
41 | } | 39 | } |
42 | 40 | ||
43 | //============================================================================= | 41 | //============================================================================= |
44 | 42 | ||
45 | YAHOO.extendX(Clipperz.PM.Components.Panels.ContactsPanel, Clipperz.PM.Components.Panels.BasePanel, { | 43 | YAHOO.extendX(Clipperz.PM.Components.Panels.ContactsPanel, Clipperz.PM.Components.Panels.BasePanel, { |
46 | 44 | ||
47 | 'toString': function() { | 45 | 'toString': function() { |
48 | return "Clipperz.PM.Components.ContactsPanel component"; | 46 | return "Clipperz.PM.Components.ContactsPanel component"; |
49 | }, | 47 | }, |
50 | 48 | ||
51 | //------------------------------------------------------------------------- | 49 | //------------------------------------------------------------------------- |
52 | 50 | ||
53 | 'render': function() { | 51 | 'render': function() { |
54 | // var tabPanelControllerConfig; | 52 | // var tabPanelControllerConfig; |
55 | 53 | ||
56 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 54 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
57 | {tag:'tbody', children:[ | 55 | {tag:'tbody', children:[ |
58 | {tag:'tr', children:[ | 56 | {tag:'tr', children:[ |
59 | {tag:'td', valign:'top', width:'200', children:[ | 57 | {tag:'td', valign:'top', width:'200', children:[ |
60 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ | 58 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ |
61 | {tag:'li', id:this.getId('contacts'), htmlString:Clipperz.PM.Strings['contactsTabLabel']}, | 59 | {tag:'li', id:this.getId('contacts'), htmlString:Clipperz.PM.Strings['contactsTabLabel']}, |
62 | ]} | 60 | ]} |
63 | ]}, | 61 | ]}, |
64 | {tag:'td', valign:'top', children:[ | 62 | {tag:'td', valign:'top', children:[ |
65 | {tag:'ul', cls:'clipperzTabPanels', children:[ | 63 | {tag:'ul', cls:'clipperzTabPanels', children:[ |
66 | {tag:'li', id:this.getId('contactsPanel'), children:[ | 64 | {tag:'li', id:this.getId('contactsPanel'), children:[ |
67 | {tag:'div', cls:'clipperzSubPanel', children:[ | 65 | {tag:'div', cls:'clipperzSubPanel', children:[ |
68 | {tag:'h5', htmlString:Clipperz.PM.Strings['contactsTabTitle']}, | 66 | {tag:'h5', htmlString:Clipperz.PM.Strings['contactsTabTitle']}, |
69 | {tag:'div', htmlString:Clipperz.PM.Strings['comingSoon']} | 67 | {tag:'div', htmlString:Clipperz.PM.Strings['comingSoon']} |
70 | ]} | 68 | ]} |
71 | ]} | 69 | ]} |
72 | ]} | 70 | ]} |
73 | ]} | 71 | ]} |
74 | ]} | 72 | ]} |
75 | ]} | 73 | ]} |
76 | ]}); | 74 | ]}); |
77 | 75 | ||
78 | // tabPanelControllerConfig = {} | 76 | // tabPanelControllerConfig = {} |
79 | // tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); | 77 | // tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); |
80 | // new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); | 78 | // new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); |
81 | this.tabPanelController().setUp(); | 79 | this.tabPanelController().setUp(); |
82 | }, | 80 | }, |
83 | 81 | ||
84 | //------------------------------------------------------------------------- | 82 | //------------------------------------------------------------------------- |
85 | 83 | ||
86 | 'tabPanelController': function() { | 84 | 'tabPanelController': function() { |
87 | if (this._tabPanelController == null) { | 85 | if (this._tabPanelController == null) { |
88 | var tabPanelControllerConfig; | 86 | var tabPanelControllerConfig; |
89 | 87 | ||
90 | tabPanelControllerConfig = {} | 88 | tabPanelControllerConfig = {} |
91 | tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); | 89 | tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); |
92 | this._tabPanelController = new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); | 90 | this._tabPanelController = new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); |
93 | } | 91 | } |
94 | 92 | ||
95 | return this._tabPanelController; | 93 | return this._tabPanelController; |
96 | }, | 94 | }, |
97 | 95 | ||
98 | //------------------------------------------------------------------------- | 96 | //------------------------------------------------------------------------- |
99 | __syntaxFix__: "syntax fix" | 97 | __syntaxFix__: "syntax fix" |
100 | 98 | ||
101 | }); | 99 | }); |
102 | 100 | ||