Changeset 5914 in subversion
- Timestamp:
- Feb 26, 2012 12:02:16 PM (15 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
program/js/app.js (modified) (5 diffs)
-
skins/default/templates/identityedit.html (modified) (1 diff)
-
skins/larry/templates/identityedit.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r5910 r5914 373 373 374 374 if (this.env.action == 'identities') { 375 this.enable_command('add', 'delete',this.env.identities_level < 2);375 this.enable_command('add', this.env.identities_level < 2); 376 376 } 377 377 else if (this.env.action == 'edit-identity' || this.env.action == 'add-identity') { 378 this.enable_command('add', this.env.identities_level < 2);379 378 this.enable_command('save', 'edit', 'toggle-editor', true); 380 if (this.is_framed() && this.env.identities_level < 2) 381 this.set_button('delete', 'act'); // activate button but delegate command to parent 382 else 383 this.enable_command('delete', this.env.identities_level < 2); 379 this.enable_command('delete', this.env.identities_level < 2); 384 380 385 381 if (this.env.action == 'add-identity') … … 4808 4804 { 4809 4805 var id; 4810 if (id = list.get_single_selection()) 4806 if (id = list.get_single_selection()) { 4807 this.enable_command('delete', list.rowcount > 1 && this.env.identities_level < 2); 4811 4808 this.load_identity(id, 'edit-identity'); 4809 } 4812 4810 }; 4813 4811 … … 4815 4813 this.load_identity = function(id, action) 4816 4814 { 4817 if (action =='edit-identity' && (!id || id==this.env.iid))4815 if (action == 'edit-identity' && (!id || id == this.env.iid)) 4818 4816 return false; 4819 4817 … … 4826 4824 } 4827 4825 4828 if (action && (id || action =='add-identity')) {4826 if (action && (id || action == 'add-identity')) { 4829 4827 this.set_busy(true); 4830 4828 this.location_href(this.env.comm_path+'&_action='+action+'&_iid='+id+add_url, target); … … 4836 4834 this.delete_identity = function(id) 4837 4835 { 4838 // exit if no mailboxspecified or if selection is empty4836 // exit if no identity is specified or if selection is empty 4839 4837 var selection = this.identity_list.get_selection(); 4840 4838 if (!(selection.length || this.env.iid)) -
trunk/roundcubemail/skins/default/templates/identityedit.html
r5868 r5914 24 24 <div id="formfooter"> 25 25 <div class="footerleft"> 26 <roundcube:button command="delete" type="input" class="button" label="delete" condition="env:action=='edit-identity'" style="margin-right:0.5em" />27 26 <roundcube:button command="save" type="input" class="button mainaction" label="save" /> 28 27 </div> -
trunk/roundcubemail/skins/larry/templates/identityedit.html
r5686 r5914 16 16 <div class="footerleft formbuttons"> 17 17 <roundcube:button command="save" type="input" class="button mainaction" label="save" /> 18 <roundcube:button command="delete" type="input" class="button" label="delete" condition="env:action=='edit-identity' && config:identities_level:0<2" />19 18 </div> 20 19 </div>
Note: See TracChangeset
for help on using the changeset viewer.
