Diffstat (limited to 'frontend/beta/js/Clipperz/PM/Components/Panels') (more/less context) (ignore whitespace changes)
8 files changed, 48 insertions, 72 deletions
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/AccountPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/AccountPanel.js index 6b467d0..f7991f1 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/AccountPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/AccountPanel.js | |||
@@ -1,120 +1,117 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.AccountPanel = function(anElement, args) { | 33 | Clipperz.PM.Components.Panels.AccountPanel = function(anElement, args) { |
37 | //MochiKit.Logging.logDebug(">>> new AccountPanel"); | 34 | //MochiKit.Logging.logDebug(">>> new AccountPanel"); |
38 | args = args || {}; | 35 | args = args || {}; |
39 | 36 | ||
40 | Clipperz.PM.Components.Panels.AccountPanel.superclass.constructor.call(this, anElement, args); | 37 | Clipperz.PM.Components.Panels.AccountPanel.superclass.constructor.call(this, anElement, args); |
41 | 38 | ||
42 | Clipperz.NotificationCenter.register(null, 'setupDone', this, 'render'); | 39 | Clipperz.NotificationCenter.register(null, 'setupDone', this, 'render'); |
43 | 40 | ||
44 | this._shouldLoadLoginHistory = true; | 41 | this._shouldLoadLoginHistory = true; |
45 | 42 | ||
46 | //this.render(); | 43 | //this.render(); |
47 | //MochiKit.Logging.logDebug("<<< new AccountPanel"); | 44 | //MochiKit.Logging.logDebug("<<< new AccountPanel"); |
48 | 45 | ||
49 | return this; | 46 | return this; |
50 | } | 47 | } |
51 | 48 | ||
52 | //============================================================================= | 49 | //============================================================================= |
53 | 50 | ||
54 | YAHOO.extendX(Clipperz.PM.Components.Panels.AccountPanel, Clipperz.PM.Components.Panels.BasePanel, { | 51 | YAHOO.extendX(Clipperz.PM.Components.Panels.AccountPanel, Clipperz.PM.Components.Panels.BasePanel, { |
55 | 52 | ||
56 | 'toString': function() { | 53 | 'toString': function() { |
57 | return "Clipperz.PM.Components.AccountPanel component"; | 54 | return "Clipperz.PM.Components.AccountPanel component"; |
58 | }, | 55 | }, |
59 | 56 | ||
60 | //------------------------------------------------------------------------- | 57 | //------------------------------------------------------------------------- |
61 | 58 | ||
62 | 'render': function() { | 59 | 'render': function() { |
63 | var errorMessageActor; | 60 | var errorMessageActor; |
64 | varchangePasswordButton; | 61 | varchangePasswordButton; |
65 | var deleteAccountButton; | 62 | var deleteAccountButton; |
66 | 63 | ||
67 | try { | 64 | try { |
68 | //MochiKit.Logging.logDebug(">>> AccountPanel.render"); | 65 | //MochiKit.Logging.logDebug(">>> AccountPanel.render"); |
69 | Clipperz.NotificationCenter.unregister(this); | 66 | Clipperz.NotificationCenter.unregister(this); |
70 | MochiKit.Signal.disconnectAllTo(this); | 67 | MochiKit.Signal.disconnectAllTo(this); |
71 | 68 | ||
72 | this.element().update(""); | 69 | this.element().update(""); |
73 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 70 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
74 | {tag:'tbody', children:[ | 71 | {tag:'tbody', children:[ |
75 | {tag:'tr', children:[ | 72 | {tag:'tr', children:[ |
76 | {tag:'td', valign:'top', width:'200', children:[ | 73 | {tag:'td', valign:'top', width:'200', children:[ |
77 | {tag:'ul', id:"accountSubMenu", cls:'subMenu', children:[ | 74 | {tag:'ul', id:"accountSubMenu", cls:'subMenu', children:[ |
78 | {tag:'li', id:'changePassphraseTab', htmlString:Clipperz.PM.Strings['changePasswordTabLabel']}, | 75 | {tag:'li', id:'changePassphraseTab', htmlString:Clipperz.PM.Strings['changePasswordTabLabel']}, |
79 | {tag:'li', id:'manageOTPTab', htmlString:Clipperz.PM.Strings['manageOTPTabLabel']}, | 76 | {tag:'li', id:'manageOTPTab', htmlString:Clipperz.PM.Strings['manageOTPTabLabel']}, |
80 | {tag:'li', id:'accountPreferencesTab', htmlString:Clipperz.PM.Strings['accountPreferencesLabel']}, | 77 | {tag:'li', id:'accountPreferencesTab', htmlString:Clipperz.PM.Strings['accountPreferencesLabel']}, |
81 | {tag:'li', id:'loginHistoryTab', htmlString:Clipperz.PM.Strings['accountLoginHistoryLabel']}, | 78 | {tag:'li', id:'loginHistoryTab', htmlString:Clipperz.PM.Strings['accountLoginHistoryLabel']}, |
82 | {tag:'li', id:'deleteAccountTab', htmlString:Clipperz.PM.Strings['deleteAccountTabLabel']} | 79 | {tag:'li', id:'deleteAccountTab', htmlString:Clipperz.PM.Strings['deleteAccountTabLabel']} |
83 | // {tag:'li', id:'paidAccountTab'), htmlString:Clipperz.PM.Strings['paidAccountTabLabel']} | 80 | // {tag:'li', id:'paidAccountTab'), htmlString:Clipperz.PM.Strings['paidAccountTabLabel']} |
84 | ]} | 81 | ]} |
85 | ]}, | 82 | ]}, |
86 | {tag:'td', valign:'top', children:[ | 83 | {tag:'td', valign:'top', children:[ |
87 | {tag:'ul', cls:'clipperzTabPanels', children:[ | 84 | {tag:'ul', cls:'clipperzTabPanels', children:[ |
88 | {tag:'li', id:this.getId('changePassphrasePanel'), children:[ | 85 | {tag:'li', id:this.getId('changePassphrasePanel'), children:[ |
89 | {tag:'div', cls:'clipperzSubPanel', children:[ | 86 | {tag:'div', cls:'clipperzSubPanel', children:[ |
90 | {tag:'h5', htmlString:Clipperz.PM.Strings['changePasswordTabTitle']}, | 87 | {tag:'h5', htmlString:Clipperz.PM.Strings['changePasswordTabTitle']}, |
91 | {tag:'div', cls:'panelBody', id:'changePassphraseBlock', children:[ | 88 | {tag:'div', cls:'panelBody', id:'changePassphraseBlock', children:[ |
92 | {tag:'form', id:this.getId('changePassphraseForm'), children:[ | 89 | {tag:'form', id:this.getId('changePassphraseForm'), children:[ |
93 | {tag:'h5', cls:'errorMessage', id:this.getId('changePassphrase_errorMessage')}, | 90 | {tag:'h5', cls:'errorMessage', id:this.getId('changePassphrase_errorMessage')}, |
94 | {tag:'table', cls:'panelBody', children:[ | 91 | {tag:'table', cls:'panelBody', children:[ |
95 | {tag:'tr', children:[ | 92 | {tag:'tr', children:[ |
96 | {tag:'td', children:[ | 93 | {tag:'td', children:[ |
97 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormUsernameLabel']} | 94 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormUsernameLabel']} |
98 | ]}, | 95 | ]}, |
99 | {tag:'td', children:[ | 96 | {tag:'td', children:[ |
100 | {tag:'input', type:'text', name:'username', id:this.getId('changePassphrase_username')} | 97 | {tag:'input', type:'text', name:'username', id:this.getId('changePassphrase_username')} |
101 | ]} | 98 | ]} |
102 | ]}, | 99 | ]}, |
103 | {tag:'tr', children:[ | 100 | {tag:'tr', children:[ |
104 | {tag:'td', children:[ | 101 | {tag:'td', children:[ |
105 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormOldPassphraseLabel']} | 102 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormOldPassphraseLabel']} |
106 | ]}, | 103 | ]}, |
107 | {tag:'td', children:[ | 104 | {tag:'td', children:[ |
108 | {tag:'input', type:'password', name:'oldPassphrase', id:this.getId('changePassphrase_oldPassphrase')} | 105 | {tag:'input', type:'password', name:'oldPassphrase', id:this.getId('changePassphrase_oldPassphrase')} |
109 | ]} | 106 | ]} |
110 | ]}, | 107 | ]}, |
111 | {tag:'tr', children:[ | 108 | {tag:'tr', children:[ |
112 | {tag:'td', children:[ | 109 | {tag:'td', children:[ |
113 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormNewPassphraseLabel']} | 110 | {tag:'span', cls:'formLabel', htmlString:Clipperz.PM.Strings['changePasswordFormNewPassphraseLabel']} |
114 | ]}, | 111 | ]}, |
115 | {tag:'td', children:[ | 112 | {tag:'td', children:[ |
116 | {tag:'input', type:'password', name:'newPassphrase', id:this.getId('changePassphrase_newPassphrase')} | 113 | {tag:'input', type:'password', name:'newPassphrase', id:this.getId('changePassphrase_newPassphrase')} |
117 | ]} | 114 | ]} |
118 | ]}, | 115 | ]}, |
119 | {tag:'tr', children:[ | 116 | {tag:'tr', children:[ |
120 | {tag:'td', children:[ | 117 | {tag:'td', children:[ |
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/BasePanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/BasePanel.js index bf60f45..15dd622 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/BasePanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/BasePanel.js | |||
@@ -1,96 +1,93 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //var _Clipperz_PM_Components_Panels_base_id_ = 0; | 31 | //var _Clipperz_PM_Components_Panels_base_id_ = 0; |
35 | 32 | ||
36 | //############################################################################# | 33 | //############################################################################# |
37 | 34 | ||
38 | Clipperz.PM.Components.Panels.BasePanel = function(anElement, args) { | 35 | Clipperz.PM.Components.Panels.BasePanel = function(anElement, args) { |
39 | args = args || {}; | 36 | args = args || {}; |
40 | 37 | ||
41 | Clipperz.PM.Components.Panels.BasePanel.superclass.constructor.call(this, anElement, args); | 38 | Clipperz.PM.Components.Panels.BasePanel.superclass.constructor.call(this, anElement, args); |
42 | 39 | ||
43 | this._user = args.user || null; | 40 | this._user = args.user || null; |
44 | this._delegate = args.delegate || null; | 41 | this._delegate = args.delegate || null; |
45 | this._tabPanelController = null; | 42 | this._tabPanelController = null; |
46 | //Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); | 43 | //Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); |
47 | 44 | ||
48 | //this._ids = {}; | 45 | //this._ids = {}; |
49 | 46 | ||
50 | return this; | 47 | return this; |
51 | } | 48 | } |
52 | 49 | ||
53 | //============================================================================= | 50 | //============================================================================= |
54 | 51 | ||
55 | YAHOO.extendX(Clipperz.PM.Components.Panels.BasePanel, Clipperz.PM.Components.BaseComponent, { | 52 | YAHOO.extendX(Clipperz.PM.Components.Panels.BasePanel, Clipperz.PM.Components.BaseComponent, { |
56 | 53 | ||
57 | 'toString': function() { | 54 | 'toString': function() { |
58 | return "Clipperz.PM.Components.Panels.BasePanel component"; | 55 | return "Clipperz.PM.Components.Panels.BasePanel component"; |
59 | }, | 56 | }, |
60 | 57 | ||
61 | //------------------------------------------------------------------------- | 58 | //------------------------------------------------------------------------- |
62 | 59 | ||
63 | 'user': function() { | 60 | 'user': function() { |
64 | return this._user; | 61 | return this._user; |
65 | }, | 62 | }, |
66 | 63 | ||
67 | 'setUser': function(aValue) { | 64 | 'setUser': function(aValue) { |
68 | this._user = aValue; | 65 | this._user = aValue; |
69 | }, | 66 | }, |
70 | 67 | ||
71 | //------------------------------------------------------------------------- | 68 | //------------------------------------------------------------------------- |
72 | 69 | ||
73 | 'delegate': function() { | 70 | 'delegate': function() { |
74 | return this._delegate; | 71 | return this._delegate; |
75 | }, | 72 | }, |
76 | 73 | ||
77 | 'setDelegate': function(aValue) { | 74 | 'setDelegate': function(aValue) { |
78 | this._delegate = aValue; | 75 | this._delegate = aValue; |
79 | }, | 76 | }, |
80 | 77 | ||
81 | //------------------------------------------------------------------------- | 78 | //------------------------------------------------------------------------- |
82 | 79 | ||
83 | 'tabPanelController': function() { | 80 | 'tabPanelController': function() { |
84 | return this._tabPanelController; | 81 | return this._tabPanelController; |
85 | }, | 82 | }, |
86 | 83 | ||
87 | 'switchLanguageHandler': function() { | 84 | 'switchLanguageHandler': function() { |
88 | //MochiKit.Logging.logDebug(">>> BasePanel.switchLanguageHandler [" + this.toString() + "]"); | 85 | //MochiKit.Logging.logDebug(">>> BasePanel.switchLanguageHandler [" + this.toString() + "]"); |
89 | this.render(); | 86 | this.render(); |
90 | //MochiKit.Logging.logDebug("<<< BasePanel.switchLanguageHandler [" + this.toString() + "]"); | 87 | //MochiKit.Logging.logDebug("<<< BasePanel.switchLanguageHandler [" + this.toString() + "]"); |
91 | }, | 88 | }, |
92 | 89 | ||
93 | //------------------------------------------------------------------------- | 90 | //------------------------------------------------------------------------- |
94 | __syntaxFix__: "syntax fix" | 91 | __syntaxFix__: "syntax fix" |
95 | 92 | ||
96 | }); | 93 | }); |
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js index f0eb9c8..5a91d83 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/ContactsPanel.js | |||
@@ -1,105 +1,102 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.ContactsPanel = function(anElement, args) { | 33 | Clipperz.PM.Components.Panels.ContactsPanel = function(anElement, args) { |
37 | args = args || {}; | 34 | args = args || {}; |
38 | 35 | ||
39 | Clipperz.PM.Components.Panels.ContactsPanel.superclass.constructor.call(this, anElement, args); | 36 | Clipperz.PM.Components.Panels.ContactsPanel.superclass.constructor.call(this, anElement, args); |
40 | 37 | ||
41 | this.render(); | 38 | this.render(); |
42 | 39 | ||
43 | return this; | 40 | return this; |
44 | } | 41 | } |
45 | 42 | ||
46 | //============================================================================= | 43 | //============================================================================= |
47 | 44 | ||
48 | YAHOO.extendX(Clipperz.PM.Components.Panels.ContactsPanel, Clipperz.PM.Components.Panels.BasePanel, { | 45 | YAHOO.extendX(Clipperz.PM.Components.Panels.ContactsPanel, Clipperz.PM.Components.Panels.BasePanel, { |
49 | 46 | ||
50 | 'toString': function() { | 47 | 'toString': function() { |
51 | return "Clipperz.PM.Components.ContactsPanel component"; | 48 | return "Clipperz.PM.Components.ContactsPanel component"; |
52 | }, | 49 | }, |
53 | 50 | ||
54 | //------------------------------------------------------------------------- | 51 | //------------------------------------------------------------------------- |
55 | 52 | ||
56 | 'render': function() { | 53 | 'render': function() { |
57 | // var tabPanelControllerConfig; | 54 | // var tabPanelControllerConfig; |
58 | 55 | ||
59 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 56 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
60 | {tag:'tbody', children:[ | 57 | {tag:'tbody', children:[ |
61 | {tag:'tr', children:[ | 58 | {tag:'tr', children:[ |
62 | {tag:'td', valign:'top', width:'200', children:[ | 59 | {tag:'td', valign:'top', width:'200', children:[ |
63 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ | 60 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ |
64 | {tag:'li', id:this.getId('contacts'), htmlString:Clipperz.PM.Strings['contactsTabLabel']}, | 61 | {tag:'li', id:this.getId('contacts'), htmlString:Clipperz.PM.Strings['contactsTabLabel']}, |
65 | ]} | 62 | ]} |
66 | ]}, | 63 | ]}, |
67 | {tag:'td', valign:'top', children:[ | 64 | {tag:'td', valign:'top', children:[ |
68 | {tag:'ul', cls:'clipperzTabPanels', children:[ | 65 | {tag:'ul', cls:'clipperzTabPanels', children:[ |
69 | {tag:'li', id:this.getId('contactsPanel'), children:[ | 66 | {tag:'li', id:this.getId('contactsPanel'), children:[ |
70 | {tag:'div', cls:'clipperzSubPanel', children:[ | 67 | {tag:'div', cls:'clipperzSubPanel', children:[ |
71 | {tag:'h5', htmlString:Clipperz.PM.Strings['contactsTabTitle']}, | 68 | {tag:'h5', htmlString:Clipperz.PM.Strings['contactsTabTitle']}, |
72 | {tag:'div', htmlString:Clipperz.PM.Strings['comingSoon']} | 69 | {tag:'div', htmlString:Clipperz.PM.Strings['comingSoon']} |
73 | ]} | 70 | ]} |
74 | ]} | 71 | ]} |
75 | ]} | 72 | ]} |
76 | ]} | 73 | ]} |
77 | ]} | 74 | ]} |
78 | ]} | 75 | ]} |
79 | ]}); | 76 | ]}); |
80 | 77 | ||
81 | // tabPanelControllerConfig = {} | 78 | // tabPanelControllerConfig = {} |
82 | // tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); | 79 | // tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); |
83 | // new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); | 80 | // new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); |
84 | this.tabPanelController().setUp(); | 81 | this.tabPanelController().setUp(); |
85 | }, | 82 | }, |
86 | 83 | ||
87 | //------------------------------------------------------------------------- | 84 | //------------------------------------------------------------------------- |
88 | 85 | ||
89 | 'tabPanelController': function() { | 86 | 'tabPanelController': function() { |
90 | if (this._tabPanelController == null) { | 87 | if (this._tabPanelController == null) { |
91 | var tabPanelControllerConfig; | 88 | var tabPanelControllerConfig; |
92 | 89 | ||
93 | tabPanelControllerConfig = {} | 90 | tabPanelControllerConfig = {} |
94 | tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); | 91 | tabPanelControllerConfig[this.getId('contacts')] = this.getId('contactsPanel'); |
95 | this._tabPanelController = new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); | 92 | this._tabPanelController = new Clipperz.PM.Components.TabPanel.TabPanelController({ config:tabPanelControllerConfig, selectedTab:this.getId('contacts') }); |
96 | } | 93 | } |
97 | 94 | ||
98 | return this._tabPanelController; | 95 | return this._tabPanelController; |
99 | }, | 96 | }, |
100 | 97 | ||
101 | //------------------------------------------------------------------------- | 98 | //------------------------------------------------------------------------- |
102 | __syntaxFix__: "syntax fix" | 99 | __syntaxFix__: "syntax fix" |
103 | 100 | ||
104 | }); | 101 | }); |
105 | 102 | ||
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/DataPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/DataPanel.js index 759903f..11d4bd7 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/DataPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/DataPanel.js | |||
@@ -1,120 +1,117 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.DataPanel = function(anElement, args) { | 33 | Clipperz.PM.Components.Panels.DataPanel = function(anElement, args) { |
37 | args = args || {}; | 34 | args = args || {}; |
38 | 35 | ||
39 | Clipperz.PM.Components.Panels.DataPanel.superclass.constructor.call(this, anElement, args); | 36 | Clipperz.PM.Components.Panels.DataPanel.superclass.constructor.call(this, anElement, args); |
40 | 37 | ||
41 | this._progressWidth = 400; | 38 | this._progressWidth = 400; |
42 | 39 | ||
43 | 40 | ||
44 | this.render(); | 41 | this.render(); |
45 | 42 | ||
46 | return this; | 43 | return this; |
47 | } | 44 | } |
48 | 45 | ||
49 | //============================================================================= | 46 | //============================================================================= |
50 | 47 | ||
51 | YAHOO.extendX(Clipperz.PM.Components.Panels.DataPanel, Clipperz.PM.Components.Panels.BasePanel, { | 48 | YAHOO.extendX(Clipperz.PM.Components.Panels.DataPanel, Clipperz.PM.Components.Panels.BasePanel, { |
52 | 49 | ||
53 | 'toString': function() { | 50 | 'toString': function() { |
54 | return "Clipperz.PM.Components.DataPanel component"; | 51 | return "Clipperz.PM.Components.DataPanel component"; |
55 | }, | 52 | }, |
56 | 53 | ||
57 | //------------------------------------------------------------------------- | 54 | //------------------------------------------------------------------------- |
58 | 55 | ||
59 | 'render': function() { | 56 | 'render': function() { |
60 | MochiKit.Signal.disconnectAllTo(this); | 57 | MochiKit.Signal.disconnectAllTo(this); |
61 | Clipperz.NotificationCenter.unregister(this); | 58 | Clipperz.NotificationCenter.unregister(this); |
62 | this.element().update(""); | 59 | this.element().update(""); |
63 | 60 | ||
64 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 61 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
65 | {tag:'tbody', children:[ | 62 | {tag:'tbody', children:[ |
66 | {tag:'tr', children:[ | 63 | {tag:'tr', children:[ |
67 | {tag:'td', valign:'top', width:'200', children:[ | 64 | {tag:'td', valign:'top', width:'200', children:[ |
68 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ | 65 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ |
69 | {tag:'li', id:'offlineCopyTab', htmlString:Clipperz.PM.Strings['offlineCopyTabLabel']}, | 66 | {tag:'li', id:'offlineCopyTab', htmlString:Clipperz.PM.Strings['offlineCopyTabLabel']}, |
70 | {tag:'li', id:'sharingTab', htmlString:Clipperz.PM.Strings['sharingTabLabel']}, | 67 | {tag:'li', id:'sharingTab', htmlString:Clipperz.PM.Strings['sharingTabLabel']}, |
71 | {tag:'li', id:'importTab', htmlString:Clipperz.PM.Strings['importTabLabel']}, | 68 | {tag:'li', id:'importTab', htmlString:Clipperz.PM.Strings['importTabLabel']}, |
72 | {tag:'li', id:'printingTab', htmlString:Clipperz.PM.Strings['printingTabLabel']} | 69 | {tag:'li', id:'printingTab', htmlString:Clipperz.PM.Strings['printingTabLabel']} |
73 | ]} | 70 | ]} |
74 | ]}, | 71 | ]}, |
75 | {tag:'td', valign:'top', children:[ | 72 | {tag:'td', valign:'top', children:[ |
76 | {tag:'ul', cls:'clipperzTabPanels', children:[ | 73 | {tag:'ul', cls:'clipperzTabPanels', children:[ |
77 | {tag:'li', id:this.getId('offlineCopyPanel'), children:[ | 74 | {tag:'li', id:this.getId('offlineCopyPanel'), children:[ |
78 | {tag:'div', cls:'clipperzSubPanel', children:[ | 75 | {tag:'div', cls:'clipperzSubPanel', children:[ |
79 | {tag:'h5', htmlString:Clipperz.PM.Strings['offlineCopyTabTitle']}, | 76 | {tag:'h5', htmlString:Clipperz.PM.Strings['offlineCopyTabTitle']}, |
80 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['offlineCopyTabDescription']}, | 77 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['offlineCopyTabDescription']}, |
81 | {tag:'div', id:this.getId('offlineCopyLinkBox'), children:[ | 78 | {tag:'div', id:this.getId('offlineCopyLinkBox'), children:[ |
82 | {tag:'a', id:'offlineCopyLink', href:'#', htmlString:Clipperz.PM.Strings['offlineCopyDownloadLinkLabel']} | 79 | {tag:'a', id:'offlineCopyLink', href:'#', htmlString:Clipperz.PM.Strings['offlineCopyDownloadLinkLabel']} |
83 | ]}, | 80 | ]}, |
84 | {tag:'div', id:this.getId('offlineCopyLinkBox_read-only'), children:[ | 81 | {tag:'div', id:this.getId('offlineCopyLinkBox_read-only'), children:[ |
85 | {tag:'span', cls:'read-only', htmlString:Clipperz.PM.Strings['offlineCopyDownloadLinkLabel']} | 82 | {tag:'span', cls:'read-only', htmlString:Clipperz.PM.Strings['offlineCopyDownloadLinkLabel']} |
86 | ]} | 83 | ]} |
87 | ]} | 84 | ]} |
88 | ]}, | 85 | ]}, |
89 | {tag:'li', id:this.getId('sharingPanel'), children:[ | 86 | {tag:'li', id:this.getId('sharingPanel'), children:[ |
90 | {tag:'div', cls:'clipperzSubPanel', children:[ | 87 | {tag:'div', cls:'clipperzSubPanel', children:[ |
91 | {tag:'h5', htmlString:Clipperz.PM.Strings['sharingTabTitle']}, | 88 | {tag:'h5', htmlString:Clipperz.PM.Strings['sharingTabTitle']}, |
92 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['sharingTabDescription']} | 89 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['sharingTabDescription']} |
93 | ]} | 90 | ]} |
94 | ]}, | 91 | ]}, |
95 | {tag:'li', id:this.getId('importPanel'), children:[ | 92 | {tag:'li', id:this.getId('importPanel'), children:[ |
96 | {tag:'div', cls:'clipperzSubPanel', children:[ | 93 | {tag:'div', cls:'clipperzSubPanel', children:[ |
97 | {tag:'div', id:this.getId('importPanelMainComponent')} | 94 | {tag:'div', id:this.getId('importPanelMainComponent')} |
98 | ]} | 95 | ]} |
99 | ]}, | 96 | ]}, |
100 | {tag:'li', id:this.getId('printingPanel'), children:[ | 97 | {tag:'li', id:this.getId('printingPanel'), children:[ |
101 | {tag:'div', cls:'clipperzSubPanel', children:[ | 98 | {tag:'div', cls:'clipperzSubPanel', children:[ |
102 | {tag:'h5', htmlString:Clipperz.PM.Strings['printingTabTitle']}, | 99 | {tag:'h5', htmlString:Clipperz.PM.Strings['printingTabTitle']}, |
103 | 100 | ||
104 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['printingTabDescription']}, | 101 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['printingTabDescription']}, |
105 | {tag:'div', id:this.getId('printingLinkBox'), children:[ | 102 | {tag:'div', id:this.getId('printingLinkBox'), children:[ |
106 | {tag:'a', id:'printingLink', href:'#', htmlString:Clipperz.PM.Strings['printingLinkLabel']} | 103 | {tag:'a', id:'printingLink', href:'#', htmlString:Clipperz.PM.Strings['printingLinkLabel']} |
107 | ]}, | 104 | ]}, |
108 | 105 | ||
109 | {tag:'hr'}, | 106 | {tag:'hr'}, |
110 | 107 | ||
111 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['exportTabDescription']}, | 108 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['exportTabDescription']}, |
112 | {tag:'div', id:this.getId('exportLinkBox'), children:[ | 109 | {tag:'div', id:this.getId('exportLinkBox'), children:[ |
113 | {tag:'a', id:'exportLink', href:'#', htmlString:Clipperz.PM.Strings['exportLinkLabel']} | 110 | {tag:'a', id:'exportLink', href:'#', htmlString:Clipperz.PM.Strings['exportLinkLabel']} |
114 | ]} | 111 | ]} |
115 | ]} | 112 | ]} |
116 | ]} | 113 | ]} |
117 | ]} | 114 | ]} |
118 | ]} | 115 | ]} |
119 | ]} | 116 | ]} |
120 | ]} | 117 | ]} |
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js index 84b2475..ef2b91c 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js | |||
@@ -1,120 +1,117 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | 31 | ||
35 | Clipperz.PM.Components.Panels.LoginPanel = function(anElement, args) { | 32 | Clipperz.PM.Components.Panels.LoginPanel = function(anElement, args) { |
36 | args = args || {}; | 33 | args = args || {}; |
37 | 34 | ||
38 | Clipperz.PM.Components.Panels.LoginPanel.superclass.constructor.call(this, anElement, args); | 35 | Clipperz.PM.Components.Panels.LoginPanel.superclass.constructor.call(this, anElement, args); |
39 | 36 | ||
40 | this._showLoginFormAnimator = null; | 37 | this._showLoginFormAnimator = null; |
41 | this._showRegistrationFormAnimator = null; | 38 | this._showRegistrationFormAnimator = null; |
42 | this._shouldShowRegistrationAlert = true; | 39 | this._shouldShowRegistrationAlert = true; |
43 | 40 | ||
44 | this._visibleForm = null; | 41 | this._visibleForm = null; |
45 | //this._isPassphraseVisible = true; | 42 | //this._isPassphraseVisible = true; |
46 | 43 | ||
47 | Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); | 44 | Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); |
48 | 45 | ||
49 | this.render(); | 46 | this.render(); |
50 | 47 | ||
51 | return this; | 48 | return this; |
52 | } | 49 | } |
53 | 50 | ||
54 | //============================================================================= | 51 | //============================================================================= |
55 | 52 | ||
56 | //MochiKit.Base.update(Clipperz.PM.Components.Panels.LoginPanel.prototype, { | 53 | //MochiKit.Base.update(Clipperz.PM.Components.Panels.LoginPanel.prototype, { |
57 | YAHOO.extendX(Clipperz.PM.Components.Panels.LoginPanel, Clipperz.PM.Components.Panels.BasePanel, { | 54 | YAHOO.extendX(Clipperz.PM.Components.Panels.LoginPanel, Clipperz.PM.Components.Panels.BasePanel, { |
58 | 55 | ||
59 | 'toString': function() { | 56 | 'toString': function() { |
60 | return "Clipperz.PM.Components.LoginPanel component"; | 57 | return "Clipperz.PM.Components.LoginPanel component"; |
61 | }, | 58 | }, |
62 | 59 | ||
63 | //------------------------------------------------------------------------- | 60 | //------------------------------------------------------------------------- |
64 | 61 | ||
65 | 'render': function() { | 62 | 'render': function() { |
66 | var result; | 63 | var result; |
67 | varlayout; | 64 | varlayout; |
68 | var registerButton; | 65 | var registerButton; |
69 | 66 | ||
70 | MochiKit.Signal.disconnectAllTo(this); | 67 | MochiKit.Signal.disconnectAllTo(this); |
71 | this.element().update(""); | 68 | this.element().update(""); |
72 | 69 | ||
73 | //MochiKit.Logging.logDebug(">>> LoginPanel.initPanel"); | 70 | //MochiKit.Logging.logDebug(">>> LoginPanel.initPanel"); |
74 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', id:this.getId('baseDiv'), cls:'LoginPanel', children:[ | 71 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', id:this.getId('baseDiv'), cls:'LoginPanel', children:[ |
75 | {tag:'table', children:[ | 72 | {tag:'table', children:[ |
76 | {tag:'thead'}, | 73 | {tag:'thead'}, |
77 | {tag:'tbody', children:[ | 74 | {tag:'tbody', children:[ |
78 | {tag:'tr', children:[ | 75 | {tag:'tr', children:[ |
79 | {tag:'td', valign:'top', children:[ | 76 | {tag:'td', valign:'top', children:[ |
80 | {tag:'div', cls:'clipperzServiceDescription', htmlString:Clipperz.PM.Strings['clipperzServiceDescription']} | 77 | {tag:'div', cls:'clipperzServiceDescription', htmlString:Clipperz.PM.Strings['clipperzServiceDescription']} |
81 | ]}, | 78 | ]}, |
82 | {tag:'td', valign:'top', align:'right', children:[ | 79 | {tag:'td', valign:'top', align:'right', children:[ |
83 | {tag:'div', id:this.getId('forms'), cls:'clipperzLoginForm', children:[ | 80 | {tag:'div', id:this.getId('forms'), cls:'clipperzLoginForm', children:[ |
84 | {tag:'div', id:this.getId('loginForm'), cls:'loginForm', children:[ | 81 | {tag:'div', id:this.getId('loginForm'), cls:'loginForm', children:[ |
85 | {tag:'div', cls:'loginFormHeaderBox', children:[{tag:'h3', htmlString:Clipperz.PM.Strings['loginFormTitle']}]}, | 82 | {tag:'div', cls:'loginFormHeaderBox', children:[{tag:'h3', htmlString:Clipperz.PM.Strings['loginFormTitle']}]}, |
86 | {tag:'form', id:this.getId('loginForm_form'), autocomplete:'off', children:[ | 83 | {tag:'form', id:this.getId('loginForm_form'), autocomplete:'off', children:[ |
87 | 84 | ||
88 | {tag:'table', cls:'formLayout', children:[ | 85 | {tag:'table', cls:'formLayout', children:[ |
89 | {tag:'thead'}, | 86 | {tag:'thead'}, |
90 | {tag:'tbody', children:[ | 87 | {tag:'tbody', children:[ |
91 | {tag:'tr', cls:'formFieldTR', children:[ | 88 | {tag:'tr', cls:'formFieldTR', children:[ |
92 | {tag:'td', width:'90', htmlString:Clipperz.PM.Strings['loginFormUsernameLabel']}, | 89 | {tag:'td', width:'90', htmlString:Clipperz.PM.Strings['loginFormUsernameLabel']}, |
93 | {tag:'td', children:[ | 90 | {tag:'td', children:[ |
94 | {tag:'input', id:this.getId('login_username'), cls:'loginFormField', type:'text', name:'username'} | 91 | {tag:'input', id:this.getId('login_username'), cls:'loginFormField', type:'text', name:'username'} |
95 | ]} | 92 | ]} |
96 | ]}, | 93 | ]}, |
97 | {tag:'tr', cls:'formFieldTR', children:[ | 94 | {tag:'tr', cls:'formFieldTR', children:[ |
98 | {tag:'td', htmlString:Clipperz.PM.Strings['loginFormPassphraseLabel']}, | 95 | {tag:'td', htmlString:Clipperz.PM.Strings['loginFormPassphraseLabel']}, |
99 | {tag:'td', children:[ | 96 | {tag:'td', children:[ |
100 | {tag:'div', id:this.getId('passphraseDIV'), children:[ | 97 | {tag:'div', id:this.getId('passphraseDIV'), children:[ |
101 | {tag:'input', id:this.getId('login_passphrase'), cls:'loginFormField', type:'password', name:'passphrase'} | 98 | {tag:'input', id:this.getId('login_passphrase'), cls:'loginFormField', type:'password', name:'passphrase'} |
102 | ]}, | 99 | ]}, |
103 | {tag:'div', cls:'oneTimePassword', id:this.getId('oneTimePasswordDIV'), children:[ | 100 | {tag:'div', cls:'oneTimePassword', id:this.getId('oneTimePasswordDIV'), children:[ |
104 | {tag:'input', type:'text', id:this.getId('oneTimePassword_1'), name:'passphrase'}, | 101 | {tag:'input', type:'text', id:this.getId('oneTimePassword_1'), name:'passphrase'}, |
105 | {tag:'span', html:'-'}, | 102 | {tag:'span', html:'-'}, |
106 | {tag:'input', type:'text', id:this.getId('oneTimePassword_2'), name:'passphrase'}, | 103 | {tag:'input', type:'text', id:this.getId('oneTimePassword_2'), name:'passphrase'}, |
107 | {tag:'span', html:'-'}, | 104 | {tag:'span', html:'-'}, |
108 | {tag:'input', type:'text', id:this.getId('oneTimePassword_3'), name:'passphrase'}, | 105 | {tag:'input', type:'text', id:this.getId('oneTimePassword_3'), name:'passphrase'}, |
109 | {tag:'span', html:'-'}, | 106 | {tag:'span', html:'-'}, |
110 | {tag:'input', type:'text', id:this.getId('oneTimePassword_4'), name:'passphrase'} | 107 | {tag:'input', type:'text', id:this.getId('oneTimePassword_4'), name:'passphrase'} |
111 | ]} | 108 | ]} |
112 | ]} | 109 | ]} |
113 | ]}, | 110 | ]}, |
114 | {tag:'tr', cls:'formFieldTR', id:this.getId('passwordTypeChooserTR'), children:[ | 111 | {tag:'tr', cls:'formFieldTR', id:this.getId('passwordTypeChooserTR'), children:[ |
115 | {tag:'td', valign:'top', align:'right', children:[ | 112 | {tag:'td', valign:'top', align:'right', children:[ |
116 | {tag:'input', type:'checkbox', cls:'passwordTypeCheckbox', id:this.getId('useOneTimePasswordCheckbox')} | 113 | {tag:'input', type:'checkbox', cls:'passwordTypeCheckbox', id:this.getId('useOneTimePasswordCheckbox')} |
117 | ]}, | 114 | ]}, |
118 | {tag:'td', children:[ | 115 | {tag:'td', children:[ |
119 | {tag:'div', cls:'passwordTypeChooser', children:[ | 116 | {tag:'div', cls:'passwordTypeChooser', children:[ |
120 | {tag:'h4', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxLabel']}, | 117 | {tag:'h4', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxLabel']}, |
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/LogoutPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/LogoutPanel.js index d7abfd6..b8cc556 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/LogoutPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/LogoutPanel.js | |||
@@ -1,73 +1,70 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.LogoutPanel = function(args) { | 33 | Clipperz.PM.Components.Panels.LogoutPanel = function(args) { |
37 | args = args || {}; | 34 | args = args || {}; |
38 | 35 | ||
39 | Clipperz.PM.Components.Panels.LogoutPanel.superclass.constructor.call(this, args); | 36 | Clipperz.PM.Components.Panels.LogoutPanel.superclass.constructor.call(this, args); |
40 | 37 | ||
41 | return this; | 38 | return this; |
42 | } | 39 | } |
43 | 40 | ||
44 | //============================================================================= | 41 | //============================================================================= |
45 | 42 | ||
46 | YAHOO.extendX(Clipperz.PM.Components.Panels.LogoutPanel, Clipperz.PM.Components.Panels.BasePanel, { | 43 | YAHOO.extendX(Clipperz.PM.Components.Panels.LogoutPanel, Clipperz.PM.Components.Panels.BasePanel, { |
47 | 44 | ||
48 | 'toString': function() { | 45 | 'toString': function() { |
49 | return "Clipperz.PM.Components.LogoutPanel component"; | 46 | return "Clipperz.PM.Components.LogoutPanel component"; |
50 | }, | 47 | }, |
51 | 48 | ||
52 | //------------------------------------------------------------------------- | 49 | //------------------------------------------------------------------------- |
53 | 50 | ||
54 | 'initPanel': function() { | 51 | 'initPanel': function() { |
55 | var result; | 52 | var result; |
56 | varlayout; | 53 | varlayout; |
57 | 54 | ||
58 | result = new YAHOO.ext.ContentPanel(this.getId('panel'), {title:'logout', closable:false, autoCreate:true}); | 55 | result = new YAHOO.ext.ContentPanel(this.getId('panel'), {title:'logout', closable:false, autoCreate:true}); |
59 | 56 | ||
60 | Clipperz.YUI.DomHelper.append(result.getEl().dom, | 57 | Clipperz.YUI.DomHelper.append(result.getEl().dom, |
61 | {tag:'div', children:[ | 58 | {tag:'div', children:[ |
62 | {tag:'h2', html:'Logout panel'} | 59 | {tag:'h2', html:'Logout panel'} |
63 | ]} | 60 | ]} |
64 | ); | 61 | ); |
65 | 62 | ||
66 | return result; | 63 | return result; |
67 | }, | 64 | }, |
68 | 65 | ||
69 | //------------------------------------------------------------------------- | 66 | //------------------------------------------------------------------------- |
70 | __syntaxFix__: "syntax fix" | 67 | __syntaxFix__: "syntax fix" |
71 | 68 | ||
72 | }); | 69 | }); |
73 | 70 | ||
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js index e2036d0..29ef516 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js | |||
@@ -1,120 +1,117 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.MainPanel = function(anElement, args) { | 33 | Clipperz.PM.Components.Panels.MainPanel = function(anElement, args) { |
37 | args = args || {}; | 34 | args = args || {}; |
38 | 35 | ||
39 | Clipperz.PM.Components.Panels.MainPanel.superclass.constructor.call(this, anElement, args); | 36 | Clipperz.PM.Components.Panels.MainPanel.superclass.constructor.call(this, anElement, args); |
40 | 37 | ||
41 | this._recordListDataModel = null; | 38 | this._recordListDataModel = null; |
42 | this._selectedRecord = null; | 39 | this._selectedRecord = null; |
43 | this._recordDetailComponent = null; | 40 | this._recordDetailComponent = null; |
44 | this._recordListGrid = null; | 41 | this._recordListGrid = null; |
45 | 42 | ||
46 | this._directLinkItemTemplate = null; | 43 | this._directLinkItemTemplate = null; |
47 | this._recordItemTemplate = null; | 44 | this._recordItemTemplate = null; |
48 | 45 | ||
49 | this._addNewRecordButton = null; | 46 | this._addNewRecordButton = null; |
50 | this._deleteRecordButton = null; | 47 | this._deleteRecordButton = null; |
51 | 48 | ||
52 | this._creationWizard = null; | 49 | this._creationWizard = null; |
53 | 50 | ||
54 | Clipperz.NotificationCenter.register(null, 'selectAndEnterEditMode', this, 'selectRecordAndEnterEditModeHandler'); | 51 | Clipperz.NotificationCenter.register(null, 'selectAndEnterEditMode', this, 'selectRecordAndEnterEditModeHandler'); |
55 | 52 | ||
56 | Clipperz.NotificationCenter.register(null, 'recordAdded', this, 'recordAddedHandler'); | 53 | Clipperz.NotificationCenter.register(null, 'recordAdded', this, 'recordAddedHandler'); |
57 | Clipperz.NotificationCenter.register(null, 'recordUpdated', this, 'recordUpdatedHandler'); | 54 | Clipperz.NotificationCenter.register(null, 'recordUpdated', this, 'recordUpdatedHandler'); |
58 | Clipperz.NotificationCenter.register(null, 'recordRemoved', this, 'recordRemovedHandler'); | 55 | Clipperz.NotificationCenter.register(null, 'recordRemoved', this, 'recordRemovedHandler'); |
59 | 56 | ||
60 | Clipperz.NotificationCenter.register(null, 'directLoginAdded', this, 'directLoginAddedHandler'); | 57 | Clipperz.NotificationCenter.register(null, 'directLoginAdded', this, 'directLoginAddedHandler'); |
61 | Clipperz.NotificationCenter.register(null, 'directLoginUpdated', this, 'directLoginUpdatedHandler'); | 58 | Clipperz.NotificationCenter.register(null, 'directLoginUpdated', this, 'directLoginUpdatedHandler'); |
62 | Clipperz.NotificationCenter.register(null, 'directLoginRemoved', this, 'directLoginRemovedHandler'); | 59 | Clipperz.NotificationCenter.register(null, 'directLoginRemoved', this, 'directLoginRemovedHandler'); |
63 | 60 | ||
64 | Clipperz.NotificationCenter.register(null, 'accountLocked', this, 'accountLockedHandler'); | 61 | Clipperz.NotificationCenter.register(null, 'accountLocked', this, 'accountLockedHandler'); |
65 | 62 | ||
66 | MochiKit.Signal.connect(MochiKit.DOM.currentWindow(), 'onresize', this, 'resizeModalMask'); | 63 | MochiKit.Signal.connect(MochiKit.DOM.currentWindow(), 'onresize', this, 'resizeModalMask'); |
67 | this.render(); | 64 | this.render(); |
68 | 65 | ||
69 | return this; | 66 | return this; |
70 | } | 67 | } |
71 | 68 | ||
72 | //============================================================================= | 69 | //============================================================================= |
73 | 70 | ||
74 | YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Panels.BasePanel, { | 71 | YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Panels.BasePanel, { |
75 | 72 | ||
76 | 'toString': function() { | 73 | 'toString': function() { |
77 | return "Clipperz.PM.Components.Panels.MainPanel component"; | 74 | return "Clipperz.PM.Components.Panels.MainPanel component"; |
78 | }, | 75 | }, |
79 | 76 | ||
80 | //------------------------------------------------------------------------- | 77 | //------------------------------------------------------------------------- |
81 | 78 | ||
82 | 'render': function() { | 79 | 'render': function() { |
83 | this.element().update(""); | 80 | this.element().update(""); |
84 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', id:'mainPanelTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 81 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', id:'mainPanelTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
85 | {tag:'tbody', children:[ | 82 | {tag:'tbody', children:[ |
86 | {tag:'tr', children:[ | 83 | {tag:'tr', children:[ |
87 | {tag:'td', width:'15', children:[ | 84 | {tag:'td', width:'15', children:[ |
88 | {tag:'div', cls:'mainPanelMinHeightDiv'} | 85 | {tag:'div', cls:'mainPanelMinHeightDiv'} |
89 | ]}, | 86 | ]}, |
90 | {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[ | 87 | {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[ |
91 | {tag:'div', id:'directLoginsBlock', children:[ | 88 | {tag:'div', id:'directLoginsBlock', children:[ |
92 | {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]}, | 89 | {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]}, |
93 | {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']}, | 90 | {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']}, |
94 | {tag:'ul', id:'directLogins'} | 91 | {tag:'ul', id:'directLogins'} |
95 | ]} | 92 | ]} |
96 | ]}, | 93 | ]}, |
97 | {tag:'td', width:'15', children:[ | 94 | {tag:'td', width:'15', children:[ |
98 | {tag:'div', cls:'mainPanelMinHeightDiv'} | 95 | {tag:'div', cls:'mainPanelMinHeightDiv'} |
99 | ]}, | 96 | ]}, |
100 | {tag:'td', valign:'top', children:[ | 97 | {tag:'td', valign:'top', children:[ |
101 | {tag:'div', id:'mainContent', children:[ | 98 | {tag:'div', id:'mainContent', children:[ |
102 | {tag:'div', id:'recordListBlockHeader'}, | 99 | {tag:'div', id:'recordListBlockHeader'}, |
103 | {tag:'div', id:'recordListAndDetailBlock', children:[ | 100 | {tag:'div', id:'recordListAndDetailBlock', children:[ |
104 | {tag:'table', id:'recordListAndDetailBlockTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 101 | {tag:'table', id:'recordListAndDetailBlockTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
105 | {tag:'tbody', children:[ | 102 | {tag:'tbody', children:[ |
106 | {tag:'tr', children:[ | 103 | {tag:'tr', children:[ |
107 | {tag:'td', valign:'top', width:'250', children:[ | 104 | {tag:'td', valign:'top', width:'250', children:[ |
108 | {tag:'div', id:'recordListBlock', children:[ | 105 | {tag:'div', id:'recordListBlock', children:[ |
109 | {tag:'div', id:'recordListFilterHeader'}, | 106 | {tag:'div', id:'recordListFilterHeader'}, |
110 | {tag:'ul', id:'records'} | 107 | {tag:'ul', id:'records'} |
111 | ]} | 108 | ]} |
112 | ]}, | 109 | ]}, |
113 | {tag:'td', id:'recordDetailSeparatorTD', rowspan:'2', valign:'top', bgcolor:'#ddddff', html:' '}, | 110 | {tag:'td', id:'recordDetailSeparatorTD', rowspan:'2', valign:'top', bgcolor:'#ddddff', html:' '}, |
114 | {tag:'td', valign:'top', children:[ | 111 | {tag:'td', valign:'top', children:[ |
115 | {tag:'div', id:'recordDetailMainBlock', children:[ | 112 | {tag:'div', id:'recordDetailMainBlock', children:[ |
116 | {tag:'div', id:'recordTitleTopBlock'}, | 113 | {tag:'div', id:'recordTitleTopBlock'}, |
117 | {tag:'div', id:'recordDetailBlock', children:[ | 114 | {tag:'div', id:'recordDetailBlock', children:[ |
118 | {tag:'div', id:'recordDetail'} | 115 | {tag:'div', id:'recordDetail'} |
119 | ]} | 116 | ]} |
120 | ]}, | 117 | ]}, |
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/ToolsPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/ToolsPanel.js index abd2621..4f2a015 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/ToolsPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/ToolsPanel.js | |||
@@ -1,120 +1,117 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 27 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
31 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 28 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
32 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } | 29 | if (typeof(Clipperz.PM.Components.Panels) == 'undefined') { Clipperz.PM.Components.Panels = {}; } |
33 | 30 | ||
34 | //############################################################################# | 31 | //############################################################################# |
35 | 32 | ||
36 | Clipperz.PM.Components.Panels.ToolsPanel = function(anElement, args) { | 33 | Clipperz.PM.Components.Panels.ToolsPanel = function(anElement, args) { |
37 | args = args || {}; | 34 | args = args || {}; |
38 | 35 | ||
39 | Clipperz.PM.Components.Panels.ToolsPanel.superclass.constructor.call(this, anElement, args); | 36 | Clipperz.PM.Components.Panels.ToolsPanel.superclass.constructor.call(this, anElement, args); |
40 | 37 | ||
41 | this._generateButtonElement = null; | 38 | this._generateButtonElement = null; |
42 | this._needsRenderingUponTabSwitch = false; | 39 | this._needsRenderingUponTabSwitch = false; |
43 | 40 | ||
44 | this.render(); | 41 | this.render(); |
45 | 42 | ||
46 | return this; | 43 | return this; |
47 | } | 44 | } |
48 | 45 | ||
49 | //============================================================================= | 46 | //============================================================================= |
50 | 47 | ||
51 | YAHOO.extendX(Clipperz.PM.Components.Panels.ToolsPanel, Clipperz.PM.Components.Panels.BasePanel, { | 48 | YAHOO.extendX(Clipperz.PM.Components.Panels.ToolsPanel, Clipperz.PM.Components.Panels.BasePanel, { |
52 | 49 | ||
53 | 'toString': function() { | 50 | 'toString': function() { |
54 | return "Clipperz.PM.Components.Panels.ToolsPanel component"; | 51 | return "Clipperz.PM.Components.Panels.ToolsPanel component"; |
55 | }, | 52 | }, |
56 | 53 | ||
57 | //------------------------------------------------------------------------- | 54 | //------------------------------------------------------------------------- |
58 | 55 | ||
59 | 'render': function() { | 56 | 'render': function() { |
60 | var bookmarkletUrl; | 57 | var bookmarkletUrl; |
61 | 58 | ||
62 | //MochiKit.Logging.logDebug(">>> ToolsPanel.render"); | 59 | //MochiKit.Logging.logDebug(">>> ToolsPanel.render"); |
63 | Clipperz.NotificationCenter.unregister(this); | 60 | Clipperz.NotificationCenter.unregister(this); |
64 | MochiKit.Signal.disconnectAllTo(this); | 61 | MochiKit.Signal.disconnectAllTo(this); |
65 | 62 | ||
66 | if (Clipperz_IEisBroken == true) { | 63 | if (Clipperz_IEisBroken == true) { |
67 | bookmarkletUrl = bookmarklet_ie; | 64 | bookmarkletUrl = bookmarklet_ie; |
68 | } else { | 65 | } else { |
69 | bookmarkletUrl = bookmarklet; | 66 | bookmarkletUrl = bookmarklet; |
70 | } | 67 | } |
71 | 68 | ||
72 | this.element().update(""); | 69 | this.element().update(""); |
73 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 70 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
74 | {tag:'tbody', children:[ | 71 | {tag:'tbody', children:[ |
75 | {tag:'tr', children:[ | 72 | {tag:'tr', children:[ |
76 | {tag:'td', valign:'top', width:'200', children:[ | 73 | {tag:'td', valign:'top', width:'200', children:[ |
77 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ | 74 | {tag:'ul', id:"dataSubMenu", cls:'subMenu', children:[ |
78 | {tag:'li', id:this.getId('passwordGenerator'), htmlString:Clipperz.PM.Strings['passwordGeneratorTabLabel']}, | 75 | {tag:'li', id:this.getId('passwordGenerator'), htmlString:Clipperz.PM.Strings['passwordGeneratorTabLabel']}, |
79 | {tag:'li', id:this.getId('bookmarklet'), htmlString:Clipperz.PM.Strings['bookmarkletTabLabel']}, | 76 | {tag:'li', id:this.getId('bookmarklet'), htmlString:Clipperz.PM.Strings['bookmarkletTabLabel']}, |
80 | {tag:'li', id:this.getId('compact'), htmlString:Clipperz.PM.Strings['compactTabLabel']}, | 77 | {tag:'li', id:this.getId('compact'), htmlString:Clipperz.PM.Strings['compactTabLabel']}, |
81 | {tag:'li', id:this.getId('httpAuth'), htmlString:Clipperz.PM.Strings['httpAuthTabLabel']} | 78 | {tag:'li', id:this.getId('httpAuth'), htmlString:Clipperz.PM.Strings['httpAuthTabLabel']} |
82 | ]} | 79 | ]} |
83 | ]}, | 80 | ]}, |
84 | {tag:'td', valign:'top', children:[ | 81 | {tag:'td', valign:'top', children:[ |
85 | {tag:'ul', cls:'clipperzTabPanels', children:[ | 82 | {tag:'ul', cls:'clipperzTabPanels', children:[ |
86 | {tag:'li', id:this.getId('passwordGeneratorPanel'), children:[ | 83 | {tag:'li', id:this.getId('passwordGeneratorPanel'), children:[ |
87 | {tag:'div', cls:'clipperzSubPanel', children:[ | 84 | {tag:'div', cls:'clipperzSubPanel', children:[ |
88 | {tag:'h5', htmlString:Clipperz.PM.Strings['passwordGeneratorTabTitle']}, | 85 | {tag:'h5', htmlString:Clipperz.PM.Strings['passwordGeneratorTabTitle']}, |
89 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['paswordGeneratorTabDescription']}, | 86 | {tag:'div', cls:'panelDescription', htmlString:Clipperz.PM.Strings['paswordGeneratorTabDescription']}, |
90 | 87 | ||
91 | //--------------------------------------------------- | 88 | //--------------------------------------------------- |
92 | {tag:'div', children:[ | 89 | {tag:'div', children:[ |
93 | {tag:'form', id:this.getId('passwordGeneratorForm'), cls:'passwordGenerator', children:[ | 90 | {tag:'form', id:this.getId('passwordGeneratorForm'), cls:'passwordGenerator', children:[ |
94 | {tag:'input', type:'text', cls:'clipperz_passwordGenerator_password', id:this.getId('passwordField')}, | 91 | {tag:'input', type:'text', cls:'clipperz_passwordGenerator_password', id:this.getId('passwordField')}, |
95 | {tag:'table', children:[ | 92 | {tag:'table', children:[ |
96 | {tag:'tbody', children:[ | 93 | {tag:'tbody', children:[ |
97 | {tag:'tr', children:[ | 94 | {tag:'tr', children:[ |
98 | {tag:'td', width:'20%', children:[ | 95 | {tag:'td', width:'20%', children:[ |
99 | {tag:'input', type:'checkbox', name:'lowercase', id:this.getId('lowercase'), checked:true}, | 96 | {tag:'input', type:'checkbox', name:'lowercase', id:this.getId('lowercase'), checked:true}, |
100 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorLowercaseLabel']} | 97 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorLowercaseLabel']} |
101 | ]}, | 98 | ]}, |
102 | {tag:'td', width:'20%', children:[ | 99 | {tag:'td', width:'20%', children:[ |
103 | {tag:'input', type:'checkbox', name:'uppercase', id:this.getId('uppercase'), checked:true}, | 100 | {tag:'input', type:'checkbox', name:'uppercase', id:this.getId('uppercase'), checked:true}, |
104 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorUppercaseLabel']} | 101 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorUppercaseLabel']} |
105 | ]}, | 102 | ]}, |
106 | {tag:'td', width:'20%', children:[ | 103 | {tag:'td', width:'20%', children:[ |
107 | {tag:'input', type:'checkbox', name:'numbers', id:this.getId('numbers'), checked:true}, | 104 | {tag:'input', type:'checkbox', name:'numbers', id:this.getId('numbers'), checked:true}, |
108 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorNumberLabel']} | 105 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorNumberLabel']} |
109 | ]}, | 106 | ]}, |
110 | {tag:'td', width:'20%', children:[ | 107 | {tag:'td', width:'20%', children:[ |
111 | {tag:'input', type:'checkbox', name:'symbols', id:this.getId('symbols'), checked:true}, | 108 | {tag:'input', type:'checkbox', name:'symbols', id:this.getId('symbols'), checked:true}, |
112 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorSymbolLabel']} | 109 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorSymbolLabel']} |
113 | ]}, | 110 | ]}, |
114 | {tag:'td', width:'20%', children:[ | 111 | {tag:'td', width:'20%', children:[ |
115 | {tag:'span', cls:'passwordGeneratorLength', children:[ | 112 | {tag:'span', cls:'passwordGeneratorLength', children:[ |
116 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorLengthLabel']}, | 113 | {tag:'span', htmlString:Clipperz.PM.Strings['passwordGeneratorLengthLabel']}, |
117 | {tag:'span', id:this.getId('passwordLength'), cls:'passwordGeneratorLengthValue', html:'0'} | 114 | {tag:'span', id:this.getId('passwordLength'), cls:'passwordGeneratorLengthValue', html:'0'} |
118 | ]} | 115 | ]} |
119 | ]} | 116 | ]} |
120 | ]} | 117 | ]} |