author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2013-05-13 13:52:10 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2013-05-13 13:52:10 (UTC) |
commit | ff35024f8506d7f6a2caddc3e20f062a638216c6 (patch) (unidiff) | |
tree | 5025a4d6aca2d826c7b7876e3e233b192e5edb01 /frontend/beta/js/Clipperz/PM/Components | |
parent | 77c90371a3055d0ad61d48f22207585948c591bf (diff) | |
download | clipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.zip clipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.tar.gz clipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.tar.bz2 |
Upated links to web site;
added stub for Account Info data.
Updated the links to the main website to match the new content/structure.
The new Account Info is now completely static; will become dynamic as soon as the backend infrastructure will be in place.
Diffstat (limited to 'frontend/beta/js/Clipperz/PM/Components') (more/less context) (show whitespace changes)
-rw-r--r-- | frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js | 2 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js b/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js index 14e42a5..9fda202 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js +++ b/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js | |||
@@ -17,65 +17,65 @@ refer to http://www.clipperz.com. | |||
17 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
18 | 18 | ||
19 | * 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 |
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
21 | 21 | ||
22 | */ | 22 | */ |
23 | 23 | ||
24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
25 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 25 | if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
26 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } | 26 | if (typeof(Clipperz.PM.Components) == 'undefined') { Clipperz.PM.Components = {}; } |
27 | if (typeof(Clipperz.PM.Components.Compact) == 'undefined') { Clipperz.PM.Components.Compact = {}; } | 27 | if (typeof(Clipperz.PM.Components.Compact) == 'undefined') { Clipperz.PM.Components.Compact = {}; } |
28 | 28 | ||
29 | Clipperz.PM.Components.Compact.CompactHeader = function(anElement, args) { | 29 | Clipperz.PM.Components.Compact.CompactHeader = function(anElement, args) { |
30 | 30 | ||
31 | Clipperz.PM.Components.Compact.CompactHeader.superclass.constructor.call(this, anElement, args); | 31 | Clipperz.PM.Components.Compact.CompactHeader.superclass.constructor.call(this, anElement, args); |
32 | 32 | ||
33 | this.render(); | 33 | this.render(); |
34 | 34 | ||
35 | return this; | 35 | return this; |
36 | }; | 36 | }; |
37 | 37 | ||
38 | YAHOO.extendX(Clipperz.PM.Components.Compact.CompactHeader, Clipperz.PM.Components.BaseComponent, { | 38 | YAHOO.extendX(Clipperz.PM.Components.Compact.CompactHeader, Clipperz.PM.Components.BaseComponent, { |
39 | 39 | ||
40 | 'toString': function() { | 40 | 'toString': function() { |
41 | return "Clipperz.PM.Components.Compact.CompactHeader"; | 41 | return "Clipperz.PM.Components.Compact.CompactHeader"; |
42 | }, | 42 | }, |
43 | 43 | ||
44 | //----------------------------------------------------- | 44 | //----------------------------------------------------- |
45 | 45 | ||
46 | 'render': function() { | 46 | 'render': function() { |
47 | this.element().update(""); | 47 | this.element().update(""); |
48 | 48 | ||
49 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', children:[ | 49 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'div', children:[ |
50 | {tag:'img', src:'./images/logo.gif'}, | 50 | {tag:'img', src:'./images/logo.gif'}, |
51 | {tag:'div', id:'lockBlock', children:[ | 51 | {tag:'div', id:'lockBlock', children:[ |
52 | {tag:'input', type:'checkbox', id:'autolock'}, | 52 | {tag:'input', type:'checkbox', id:'autolock'}, |
53 | {tag:'span', html:'auto'}, | 53 | {tag:'span', html:'auto'}, |
54 | {tag:'a', href:'#', htmlString:Clipperz.PM.Strings['lockMenuLabel'], id:'lock'} | 54 | {tag:'a', href:'#', htmlString:Clipperz.PM.Strings['lockMenuLabel'], id:'lock'} |
55 | ]} | 55 | ]} |
56 | ]}); | 56 | ]}); |
57 | 57 | ||
58 | Clipperz.YUI.DomHelper.append(this.element().dom, | 58 | Clipperz.YUI.DomHelper.append(this.element().dom, |
59 | {tag:'div', id:'compactMiscLinks', children:[ | 59 | {tag:'div', id:'compactMiscLinks', children:[ |
60 | {tag:'a', id:'donateHeaderIconLink', target:'_blank', href:Clipperz.PM.Strings['donateHeaderLinkUrl'], children:[ | 60 | {tag:'a', id:'donateHeaderIconLink', target:'_blank', href:Clipperz.PM.Strings['donateHeaderLinkUrl'], children:[ |
61 | {tag:'img', id:'donateHeaderLinkIcon', src:'./images/smiles_small.gif'} | 61 | {tag:'img', id:'donateHeaderLinkIcon', src:'./images/smiles_small.gif'} |
62 | ]}, | 62 | ]}, |
63 | {tag:'ul', children:[ | 63 | {tag:'ul', children:[ |
64 | {tag:'li', children:[{tag:'a', id:'donateHeaderLink', html:'donate', target:'_blank'}]}, | 64 | {tag:'li', children:[{tag:'a', id:'donateHeaderLink', html:'donate', target:'_blank'}]}, |
65 | {tag:'li', children:[{tag:'a', id:'creditsHeaderLink', html:'credits', target:'_blank'}]}, | 65 | // {tag:'li', children:[{tag:'a', id:'creditsHeaderLink', html:'credits', target:'_blank'}]}, |
66 | {tag:'li', children:[{tag:'a', id:'feedbackHeaderLink', html:'feedback', target:'_blank'}]}, | 66 | {tag:'li', children:[{tag:'a', id:'feedbackHeaderLink', html:'feedback', target:'_blank'}]}, |
67 | {tag:'li', children:[{tag:'a', id:'helpHeaderLink', html:'help', target:'_blank'}]}, | 67 | {tag:'li', children:[{tag:'a', id:'helpHeaderLink', html:'help', target:'_blank'}]}, |
68 | {tag:'li', children:[{tag:'a', id:'forumHeaderLink', html:'forum', target:'_blank'}]} | 68 | {tag:'li', children:[{tag:'a', id:'forumHeaderLink', html:'forum', target:'_blank'}]} |
69 | ]} | 69 | ]} |
70 | ]} | 70 | ]} |
71 | ); | 71 | ); |
72 | 72 | ||
73 | YAHOO.ext.Element.get('lockBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); | 73 | YAHOO.ext.Element.get('lockBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); |
74 | Clipperz.NotificationCenter.notify(this, 'switchLanguage'); | 74 | Clipperz.NotificationCenter.notify(this, 'switchLanguage'); |
75 | }, | 75 | }, |
76 | 76 | ||
77 | //----------------------------------------------------- | 77 | //----------------------------------------------------- |
78 | __syntaxFix__: '__syntaxFix__' | 78 | __syntaxFix__: '__syntaxFix__' |
79 | }); | 79 | }); |
80 | 80 | ||
81 | 81 | ||
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js index c19a8a3..bab5fba 100644 --- a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js +++ b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js | |||
@@ -38,158 +38,188 @@ Clipperz.PM.Components.Panels.MainPanel = function(anElement, args) { | |||
38 | this._recordDetailComponent = null; | 38 | this._recordDetailComponent = null; |
39 | this._recordListGrid = null; | 39 | this._recordListGrid = null; |
40 | 40 | ||
41 | this._directLinkItemTemplate = null; | 41 | this._directLinkItemTemplate = null; |
42 | this._recordItemTemplate = null; | 42 | this._recordItemTemplate = null; |
43 | 43 | ||
44 | this._addNewRecordButton = null; | 44 | this._addNewRecordButton = null; |
45 | this._deleteRecordButton = null; | 45 | this._deleteRecordButton = null; |
46 | 46 | ||
47 | this._creationWizard = null; | 47 | this._creationWizard = null; |
48 | 48 | ||
49 | Clipperz.NotificationCenter.register(null, 'selectAndEnterEditMode', this, 'selectRecordAndEnterEditModeHandler'); | 49 | Clipperz.NotificationCenter.register(null, 'selectAndEnterEditMode', this, 'selectRecordAndEnterEditModeHandler'); |
50 | 50 | ||
51 | Clipperz.NotificationCenter.register(null, 'recordAdded', this, 'recordAddedHandler'); | 51 | Clipperz.NotificationCenter.register(null, 'recordAdded', this, 'recordAddedHandler'); |
52 | Clipperz.NotificationCenter.register(null, 'recordUpdated', this, 'recordUpdatedHandler'); | 52 | Clipperz.NotificationCenter.register(null, 'recordUpdated', this, 'recordUpdatedHandler'); |
53 | Clipperz.NotificationCenter.register(null, 'recordRemoved', this, 'recordRemovedHandler'); | 53 | Clipperz.NotificationCenter.register(null, 'recordRemoved', this, 'recordRemovedHandler'); |
54 | 54 | ||
55 | Clipperz.NotificationCenter.register(null, 'directLoginAdded', this, 'directLoginAddedHandler'); | 55 | Clipperz.NotificationCenter.register(null, 'directLoginAdded', this, 'directLoginAddedHandler'); |
56 | Clipperz.NotificationCenter.register(null, 'directLoginUpdated', this, 'directLoginUpdatedHandler'); | 56 | Clipperz.NotificationCenter.register(null, 'directLoginUpdated', this, 'directLoginUpdatedHandler'); |
57 | Clipperz.NotificationCenter.register(null, 'directLoginRemoved', this, 'directLoginRemovedHandler'); | 57 | Clipperz.NotificationCenter.register(null, 'directLoginRemoved', this, 'directLoginRemovedHandler'); |
58 | 58 | ||
59 | Clipperz.NotificationCenter.register(null, 'accountLocked', this, 'accountLockedHandler'); | 59 | Clipperz.NotificationCenter.register(null, 'accountLocked', this, 'accountLockedHandler'); |
60 | 60 | ||
61 | MochiKit.Signal.connect(MochiKit.DOM.currentWindow(), 'onresize', this, 'resizeModalMask'); | 61 | MochiKit.Signal.connect(MochiKit.DOM.currentWindow(), 'onresize', this, 'resizeModalMask'); |
62 | this.render(); | 62 | this.render(); |
63 | 63 | ||
64 | return this; | 64 | return this; |
65 | } | 65 | } |
66 | 66 | ||
67 | //============================================================================= | 67 | //============================================================================= |
68 | 68 | ||
69 | YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Panels.BasePanel, { | 69 | YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Panels.BasePanel, { |
70 | 70 | ||
71 | 'toString': function() { | 71 | 'toString': function() { |
72 | return "Clipperz.PM.Components.Panels.MainPanel component"; | 72 | return "Clipperz.PM.Components.Panels.MainPanel component"; |
73 | }, | 73 | }, |
74 | 74 | ||
75 | //------------------------------------------------------------------------- | 75 | //------------------------------------------------------------------------- |
76 | 76 | ||
77 | 'render': function() { | 77 | 'render': function() { |
78 | this.element().update(""); | 78 | this.element().update(""); |
79 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', id:'mainPanelTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 79 | Clipperz.YUI.DomHelper.append(this.element().dom, {tag:'table', id:'mainPanelTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
80 | {tag:'tbody', children:[ | 80 | {tag:'tbody', children:[ |
81 | {tag:'tr', children:[ | 81 | {tag:'tr', children:[ |
82 | {tag:'td', width:'15', children:[ | 82 | {tag:'td', width:'15', children:[ |
83 | {tag:'div', cls:'mainPanelMinHeightDiv'} | 83 | {tag:'div', cls:'mainPanelMinHeightDiv'} |
84 | ]}, | 84 | ]}, |
85 | {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[ | 85 | {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[ |
86 | {tag:'div', id:'accountStatus', children:[ | ||
87 | {tag:'div', cls:'header', children:[{tag:'h5', cls:'title', htmlString:"Account info"}]}, | ||
88 | // {tag:'div', cls:'accountStatus', html:"early adopter"}, | ||
89 | {tag:'div', cls:'accountLevel', children:[ | ||
90 | {tag:'span', cls:'label', html:"status"}, | ||
91 | {tag:'span', cls:'status', html:"early adopter"} | ||
92 | ]}, | ||
93 | {tag:'div', cls:'accountLevel', children:[ | ||
94 | {tag:'span', cls:'label', html:"level"}, | ||
95 | // {tag:'span', cls:'level', html:"★☆☆☆"} | ||
96 | {tag:'span', cls:'level', html:"☆☆☆☆"} | ||
97 | ]}, | ||
98 | {tag:'div', cls:'accountExpiration', children:[ | ||
99 | {tag:'span', cls:'label', html:"expires"}, | ||
100 | // {tag:'span', cls:'expriation', html:"on 26 April 2014"} | ||
101 | {tag:'span', cls:'expriation', html:"never"} | ||
102 | ]}, | ||
103 | // {tag:'div', cls:'payButton', children:[ | ||
104 | // {tag:'a', href:'#', cls:'info', html:"info"} | ||
105 | // ]} | ||
106 | {tag:'div', id:'payButton', cls:'payButton'} | ||
107 | ]}, | ||
86 | {tag:'div', id:'directLoginsBlock', children:[ | 108 | {tag:'div', id:'directLoginsBlock', children:[ |
87 | {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]}, | 109 | {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]}, |
88 | {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']}, | 110 | {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']}, |
89 | {tag:'ul', id:'directLogins'} | 111 | {tag:'ul', id:'directLogins'} |
90 | ]} | 112 | ]} |
91 | ]}, | 113 | ]}, |
92 | {tag:'td', width:'15', children:[ | 114 | {tag:'td', width:'15', children:[ |
93 | {tag:'div', cls:'mainPanelMinHeightDiv'} | 115 | {tag:'div', cls:'mainPanelMinHeightDiv'} |
94 | ]}, | 116 | ]}, |
95 | {tag:'td', valign:'top', children:[ | 117 | {tag:'td', valign:'top', children:[ |
96 | {tag:'div', id:'mainContent', children:[ | 118 | {tag:'div', id:'mainContent', children:[ |
97 | {tag:'div', id:'recordListBlockHeader'}, | 119 | {tag:'div', id:'recordListBlockHeader'}, |
98 | {tag:'div', id:'recordListAndDetailBlock', children:[ | 120 | {tag:'div', id:'recordListAndDetailBlock', children:[ |
99 | {tag:'table', id:'recordListAndDetailBlockTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ | 121 | {tag:'table', id:'recordListAndDetailBlockTABLE', border:'0', cellspacing:'0', cellpadding:'0', children:[ |
100 | {tag:'tbody', children:[ | 122 | {tag:'tbody', children:[ |
101 | {tag:'tr', children:[ | 123 | {tag:'tr', children:[ |
102 | {tag:'td', valign:'top', width:'250', children:[ | 124 | {tag:'td', valign:'top', width:'250', children:[ |
103 | {tag:'div', id:'recordListBlock', children:[ | 125 | {tag:'div', id:'recordListBlock', children:[ |
104 | {tag:'div', id:'recordListFilterHeader'}, | 126 | {tag:'div', id:'recordListFilterHeader'}, |
105 | {tag:'ul', id:'records'} | 127 | {tag:'ul', id:'records'} |
106 | ]} | 128 | ]} |
107 | ]}, | 129 | ]}, |
108 | {tag:'td', id:'recordDetailSeparatorTD', rowspan:'2', valign:'top', bgcolor:'#ddddff', html:' '}, | 130 | {tag:'td', id:'recordDetailSeparatorTD', rowspan:'2', valign:'top', bgcolor:'#ddddff', html:' '}, |
109 | {tag:'td', valign:'top', children:[ | 131 | {tag:'td', valign:'top', children:[ |
110 | {tag:'div', id:'recordDetailMainBlock', children:[ | 132 | {tag:'div', id:'recordDetailMainBlock', children:[ |
111 | {tag:'div', id:'recordTitleTopBlock'}, | 133 | {tag:'div', id:'recordTitleTopBlock'}, |
112 | {tag:'div', id:'recordDetailBlock', children:[ | 134 | {tag:'div', id:'recordDetailBlock', children:[ |
113 | {tag:'div', id:'recordDetail'} | 135 | {tag:'div', id:'recordDetail'} |
114 | ]} | 136 | ]} |
115 | ]}, | 137 | ]}, |
116 | {tag:'div', id:'recordCreationWizardMainBlock', children:[ | 138 | {tag:'div', id:'recordCreationWizardMainBlock', children:[ |
117 | {tag:'div', id:'recordCreationWizard', html:"WIZARD"} | 139 | {tag:'div', id:'recordCreationWizard', html:"WIZARD"} |
118 | ]} | 140 | ]} |
119 | ]} | 141 | ]} |
120 | ]}, | 142 | ]}, |
121 | {tag:'tr', children:[ | 143 | {tag:'tr', children:[ |
122 | {tag:'td', id:'cardBoxLowerLeftTD', html:' '}, | 144 | {tag:'td', id:'cardBoxLowerLeftTD', html:' '}, |
123 | {tag:'td', id:'cardBoxLowerRightTD', html:' '} | 145 | {tag:'td', id:'cardBoxLowerRightTD', html:' '} |
124 | ]} | 146 | ]} |
125 | ]} | 147 | ]} |
126 | ]} | 148 | ]} |
127 | ]} | 149 | ]} |
128 | ]} | 150 | ]} |
129 | ]}, | 151 | ]}, |
130 | {tag:'td', width:'15', html:" "} | 152 | {tag:'td', width:'15', html:" "} |
131 | ]} | 153 | ]} |
132 | ]} | 154 | ]} |
133 | ]}); | 155 | ]}); |
134 | 156 | ||
135 | this.renderRecordListBlockHeader(); | 157 | this.renderRecordListBlockHeader(); |
136 | // this.renderRecordListFilterHeader(); | 158 | // this.renderRecordListFilterHeader(); |
137 | 159 | ||
138 | YAHOO.ext.Element.get('directLogins').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); | 160 | YAHOO.ext.Element.get('directLogins').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); |
161 | //TODO | ||
162 | new YAHOO.ext.Button('payButton', {text:"Info", handler:this.payButtonHandler, scope:this}); | ||
139 | 163 | ||
140 | this.recordDetailComponent(); | 164 | this.recordDetailComponent(); |
141 | 165 | ||
142 | YAHOO.ext.Element.get('recordDetailMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).show(); | 166 | YAHOO.ext.Element.get('recordDetailMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).show(); |
143 | YAHOO.ext.Element.get('recordCreationWizardMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); | 167 | YAHOO.ext.Element.get('recordCreationWizardMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); |
144 | }, | 168 | }, |
145 | 169 | ||
146 | //------------------------------------------------------------------------- | 170 | //------------------------------------------------------------------------- |
147 | 171 | ||
172 | 'payButtonHandler': function(anEvent) { | ||
173 | window.open('https://www.clipperz.com/pricing/', '_blank'); | ||
174 | }, | ||
175 | |||
176 | //------------------------------------------------------------------------- | ||
177 | |||
148 | 'addNewRecordButton': function() { | 178 | 'addNewRecordButton': function() { |
149 | return this._addNewRecordButton; | 179 | return this._addNewRecordButton; |
150 | }, | 180 | }, |
151 | 181 | ||
152 | 'setAddNewRecordButton': function(aValue) { | 182 | 'setAddNewRecordButton': function(aValue) { |
153 | this._addNewRecordButton = aValue; | 183 | this._addNewRecordButton = aValue; |
154 | }, | 184 | }, |
155 | 185 | ||
156 | 'deleteRecordButton': function() { | 186 | 'deleteRecordButton': function() { |
157 | return this._deleteRecordButton; | 187 | return this._deleteRecordButton; |
158 | }, | 188 | }, |
159 | 189 | ||
160 | 'setDeleteRecordButton': function(aValue) { | 190 | 'setDeleteRecordButton': function(aValue) { |
161 | this._deleteRecordButton = aValue; | 191 | this._deleteRecordButton = aValue; |
162 | }, | 192 | }, |
163 | 193 | ||
164 | //------------------------------------------------------------------------- | 194 | //------------------------------------------------------------------------- |
165 | 195 | ||
166 | 'addNewRecord': function(anEvent) { | 196 | 'addNewRecord': function(anEvent) { |
167 | var deferredResult; | 197 | var deferredResult; |
168 | // var currentNumberOfRecords; | 198 | // var currentNumberOfRecords; |
169 | 199 | ||
170 | deferredResult = new MochiKit.Async.Deferred(); | 200 | deferredResult = new MochiKit.Async.Deferred(); |
171 | 201 | ||
172 | // currentNumberOfRecords = MochiKit.Base.keys(this.user().records()).length; | 202 | // currentNumberOfRecords = MochiKit.Base.keys(this.user().records()).length; |
173 | /* | 203 | /* |
174 | // if ((this.user().preferences().shouldShowDonationPanel()) && (currentNumberOfRecords > 0) && ((currentNumberOfRecords%10) == 0)) { | 204 | // if ((this.user().preferences().shouldShowDonationPanel()) && (currentNumberOfRecords > 0) && ((currentNumberOfRecords%10) == 0)) { |
175 | // if (true) { | 205 | // if (true) { |
176 | if ((this.user().preferences().shouldShowDonationPanel()) && (currentNumberOfRecords >= 5)) { | 206 | if ((this.user().preferences().shouldShowDonationPanel()) && (currentNumberOfRecords >= 5)) { |
177 | deferredResult.addCallback(Clipperz.PM.showDonationSplashScreen, this.user(), 'recordListAddRecordButton'); | 207 | deferredResult.addCallback(Clipperz.PM.showDonationSplashScreen, this.user(), 'recordListAddRecordButton'); |
178 | } | 208 | } |
179 | */ | 209 | */ |
180 | deferredResult.addCallback(MochiKit.Base.bind(function() { | 210 | deferredResult.addCallback(MochiKit.Base.bind(function() { |
181 | var currentlySelectedRecord; | 211 | var currentlySelectedRecord; |
182 | 212 | ||
183 | currentlySelecedRecord = this.selectedRecord(); | 213 | currentlySelecedRecord = this.selectedRecord(); |
184 | this.setSelectedRecord(null); | 214 | this.setSelectedRecord(null); |
185 | 215 | ||
186 | YAHOO.ext.Element.get('recordDetailMainBlock').hide(); | 216 | YAHOO.ext.Element.get('recordDetailMainBlock').hide(); |
187 | YAHOO.ext.Element.get('recordCreationWizardMainBlock').show(); | 217 | YAHOO.ext.Element.get('recordCreationWizardMainBlock').show(); |
188 | this.setCreationWizard(new Clipperz.PM.Components.RecordDetail.CreationWizard(YAHOO.ext.Element.get('recordCreationWizardMainBlock'), {previouslySelectedRecord:currentlySelecedRecord, mainComponent:this})); | 218 | this.setCreationWizard(new Clipperz.PM.Components.RecordDetail.CreationWizard(YAHOO.ext.Element.get('recordCreationWizardMainBlock'), {previouslySelectedRecord:currentlySelecedRecord, mainComponent:this})); |
189 | 219 | ||
190 | this.enterModalView(); | 220 | this.enterModalView(); |
191 | }, this)); | 221 | }, this)); |
192 | 222 | ||
193 | deferredResult.callback(); | 223 | deferredResult.callback(); |
194 | }, | 224 | }, |
195 | 225 | ||