author | Clipperz <info@clipperz.com> | 2013-01-31 13:42:04 (UTC) |
---|---|---|
committer | Clipperz <info@clipperz.com> | 2013-01-31 13:42:04 (UTC) |
commit | 07d0357beef5d9328a2dd8d07ad7b39c87ac55e4 (patch) (unidiff) | |
tree | f7a4aed8848302db153c2a211f8e58b944eb4c5b /frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js | |
parent | 767a3dcf48b6ac911c088af5dd7738a728eb6b99 (diff) | |
download | clipperz-07d0357beef5d9328a2dd8d07ad7b39c87ac55e4.zip clipperz-07d0357beef5d9328a2dd8d07ad7b39c87ac55e4.tar.gz clipperz-07d0357beef5d9328a2dd8d07ad7b39c87ac55e4.tar.bz2 |
Updated Copyright claims
- updated reference dates;
- removed reference to Community Edition;
- normalized logging using Clipperz.log[Warn|Error|Debug]
Diffstat (limited to 'frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js index ef2b91c..3081a9d 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/LoginPanel.js | |||
@@ -1,118 +1,116 @@ | |||
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 | Clipperz.PM.Components.Panels.LoginPanel = function(anElement, args) { | 30 | Clipperz.PM.Components.Panels.LoginPanel = function(anElement, args) { |
33 | args = args || {}; | 31 | args = args || {}; |
34 | 32 | ||
35 | Clipperz.PM.Components.Panels.LoginPanel.superclass.constructor.call(this, anElement, args); | 33 | Clipperz.PM.Components.Panels.LoginPanel.superclass.constructor.call(this, anElement, args); |
36 | 34 | ||
37 | this._showLoginFormAnimator = null; | 35 | this._showLoginFormAnimator = null; |
38 | this._showRegistrationFormAnimator = null; | 36 | this._showRegistrationFormAnimator = null; |
39 | this._shouldShowRegistrationAlert = true; | 37 | this._shouldShowRegistrationAlert = true; |
40 | 38 | ||
41 | this._visibleForm = null; | 39 | this._visibleForm = null; |
42 | //this._isPassphraseVisible = true; | 40 | //this._isPassphraseVisible = true; |
43 | 41 | ||
44 | Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); | 42 | Clipperz.NotificationCenter.register(null, 'switchLanguage', this, 'switchLanguageHandler'); |
45 | 43 | ||
46 | this.render(); | 44 | this.render(); |
47 | 45 | ||
48 | return this; | 46 | return this; |
49 | } | 47 | } |
50 | 48 | ||
51 | //============================================================================= | 49 | //============================================================================= |
52 | 50 | ||
53 | //MochiKit.Base.update(Clipperz.PM.Components.Panels.LoginPanel.prototype, { | 51 | //MochiKit.Base.update(Clipperz.PM.Components.Panels.LoginPanel.prototype, { |
54 | YAHOO.extendX(Clipperz.PM.Components.Panels.LoginPanel, Clipperz.PM.Components.Panels.BasePanel, { | 52 | YAHOO.extendX(Clipperz.PM.Components.Panels.LoginPanel, Clipperz.PM.Components.Panels.BasePanel, { |
55 | 53 | ||
56 | 'toString': function() { | 54 | 'toString': function() { |
57 | return "Clipperz.PM.Components.LoginPanel component"; | 55 | return "Clipperz.PM.Components.LoginPanel component"; |
58 | }, | 56 | }, |
59 | 57 | ||
60 | //------------------------------------------------------------------------- | 58 | //------------------------------------------------------------------------- |
61 | 59 | ||
62 | 'render': function() { | 60 | 'render': function() { |
63 | var result; | 61 | var result; |
64 | varlayout; | 62 | varlayout; |
65 | var registerButton; | 63 | var registerButton; |
66 | 64 | ||
67 | MochiKit.Signal.disconnectAllTo(this); | 65 | MochiKit.Signal.disconnectAllTo(this); |
68 | this.element().update(""); | 66 | this.element().update(""); |
69 | 67 | ||
70 | //MochiKit.Logging.logDebug(">>> LoginPanel.initPanel"); | 68 | //MochiKit.Logging.logDebug(">>> LoginPanel.initPanel"); |
71 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', id:this.getId('baseDiv'), cls:'LoginPanel', children:[ | 69 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', id:this.getId('baseDiv'), cls:'LoginPanel', children:[ |
72 | {tag:'table', children:[ | 70 | {tag:'table', children:[ |
73 | {tag:'thead'}, | 71 | {tag:'thead'}, |
74 | {tag:'tbody', children:[ | 72 | {tag:'tbody', children:[ |
75 | {tag:'tr', children:[ | 73 | {tag:'tr', children:[ |
76 | {tag:'td', valign:'top', children:[ | 74 | {tag:'td', valign:'top', children:[ |
77 | {tag:'div', cls:'clipperzServiceDescription', htmlString:Clipperz.PM.Strings['clipperzServiceDescription']} | 75 | {tag:'div', cls:'clipperzServiceDescription', htmlString:Clipperz.PM.Strings['clipperzServiceDescription']} |
78 | ]}, | 76 | ]}, |
79 | {tag:'td', valign:'top', align:'right', children:[ | 77 | {tag:'td', valign:'top', align:'right', children:[ |
80 | {tag:'div', id:this.getId('forms'), cls:'clipperzLoginForm', children:[ | 78 | {tag:'div', id:this.getId('forms'), cls:'clipperzLoginForm', children:[ |
81 | {tag:'div', id:this.getId('loginForm'), cls:'loginForm', children:[ | 79 | {tag:'div', id:this.getId('loginForm'), cls:'loginForm', children:[ |
82 | {tag:'div', cls:'loginFormHeaderBox', children:[{tag:'h3', htmlString:Clipperz.PM.Strings['loginFormTitle']}]}, | 80 | {tag:'div', cls:'loginFormHeaderBox', children:[{tag:'h3', htmlString:Clipperz.PM.Strings['loginFormTitle']}]}, |
83 | {tag:'form', id:this.getId('loginForm_form'), autocomplete:'off', children:[ | 81 | {tag:'form', id:this.getId('loginForm_form'), autocomplete:'off', children:[ |
84 | 82 | ||
85 | {tag:'table', cls:'formLayout', children:[ | 83 | {tag:'table', cls:'formLayout', children:[ |
86 | {tag:'thead'}, | 84 | {tag:'thead'}, |
87 | {tag:'tbody', children:[ | 85 | {tag:'tbody', children:[ |
88 | {tag:'tr', cls:'formFieldTR', children:[ | 86 | {tag:'tr', cls:'formFieldTR', children:[ |
89 | {tag:'td', width:'90', htmlString:Clipperz.PM.Strings['loginFormUsernameLabel']}, | 87 | {tag:'td', width:'90', htmlString:Clipperz.PM.Strings['loginFormUsernameLabel']}, |
90 | {tag:'td', children:[ | 88 | {tag:'td', children:[ |
91 | {tag:'input', id:this.getId('login_username'), cls:'loginFormField', type:'text', name:'username'} | 89 | {tag:'input', id:this.getId('login_username'), cls:'loginFormField', type:'text', name:'username'} |
92 | ]} | 90 | ]} |
93 | ]}, | 91 | ]}, |
94 | {tag:'tr', cls:'formFieldTR', children:[ | 92 | {tag:'tr', cls:'formFieldTR', children:[ |
95 | {tag:'td', htmlString:Clipperz.PM.Strings['loginFormPassphraseLabel']}, | 93 | {tag:'td', htmlString:Clipperz.PM.Strings['loginFormPassphraseLabel']}, |
96 | {tag:'td', children:[ | 94 | {tag:'td', children:[ |
97 | {tag:'div', id:this.getId('passphraseDIV'), children:[ | 95 | {tag:'div', id:this.getId('passphraseDIV'), children:[ |
98 | {tag:'input', id:this.getId('login_passphrase'), cls:'loginFormField', type:'password', name:'passphrase'} | 96 | {tag:'input', id:this.getId('login_passphrase'), cls:'loginFormField', type:'password', name:'passphrase'} |
99 | ]}, | 97 | ]}, |
100 | {tag:'div', cls:'oneTimePassword', id:this.getId('oneTimePasswordDIV'), children:[ | 98 | {tag:'div', cls:'oneTimePassword', id:this.getId('oneTimePasswordDIV'), children:[ |
101 | {tag:'input', type:'text', id:this.getId('oneTimePassword_1'), name:'passphrase'}, | 99 | {tag:'input', type:'text', id:this.getId('oneTimePassword_1'), name:'passphrase'}, |
102 | {tag:'span', html:'-'}, | 100 | {tag:'span', html:'-'}, |
103 | {tag:'input', type:'text', id:this.getId('oneTimePassword_2'), name:'passphrase'}, | 101 | {tag:'input', type:'text', id:this.getId('oneTimePassword_2'), name:'passphrase'}, |
104 | {tag:'span', html:'-'}, | 102 | {tag:'span', html:'-'}, |
105 | {tag:'input', type:'text', id:this.getId('oneTimePassword_3'), name:'passphrase'}, | 103 | {tag:'input', type:'text', id:this.getId('oneTimePassword_3'), name:'passphrase'}, |
106 | {tag:'span', html:'-'}, | 104 | {tag:'span', html:'-'}, |
107 | {tag:'input', type:'text', id:this.getId('oneTimePassword_4'), name:'passphrase'} | 105 | {tag:'input', type:'text', id:this.getId('oneTimePassword_4'), name:'passphrase'} |
108 | ]} | 106 | ]} |
109 | ]} | 107 | ]} |
110 | ]}, | 108 | ]}, |
111 | {tag:'tr', cls:'formFieldTR', id:this.getId('passwordTypeChooserTR'), children:[ | 109 | {tag:'tr', cls:'formFieldTR', id:this.getId('passwordTypeChooserTR'), children:[ |
112 | {tag:'td', valign:'top', align:'right', children:[ | 110 | {tag:'td', valign:'top', align:'right', children:[ |
113 | {tag:'input', type:'checkbox', cls:'passwordTypeCheckbox', id:this.getId('useOneTimePasswordCheckbox')} | 111 | {tag:'input', type:'checkbox', cls:'passwordTypeCheckbox', id:this.getId('useOneTimePasswordCheckbox')} |
114 | ]}, | 112 | ]}, |
115 | {tag:'td', children:[ | 113 | {tag:'td', children:[ |
116 | {tag:'div', cls:'passwordTypeChooser', children:[ | 114 | {tag:'div', cls:'passwordTypeChooser', children:[ |
117 | {tag:'h4', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxLabel']}, | 115 | {tag:'h4', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxLabel']}, |
118 | {tag:'span', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxDescription']} | 116 | {tag:'span', htmlString:Clipperz.PM.Strings['loginFormOneTimePasswordCheckboxDescription']} |