1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-19 08:52:22 +01:00
This commit is contained in:
jbtbnl 2014-02-17 22:38:32 +01:00
parent c835daf184
commit cb1e998625

View File

@ -252,12 +252,10 @@ OC.Contacts = OC.Contacts || {
if(act && act.length > 0) { if(act && act.length > 0) {
this.$contactList.addClass('multiselect'); this.$contactList.addClass('multiselect');
this.$contactListHeader.find('.actions').css('display', ''); this.$contactListHeader.find('.actions').css('display', '');
this.$contactListHeader.find('.action').css('display', ''); this.$contactListHeader.find('.action').css('display', 'none');
this.$contactListHeader.find('.name').attr('colspan', '5'); this.$contactListHeader.find('.name').attr('colspan', '5');
this.$contactListHeader.find('.info').css('display', 'none'); this.$contactListHeader.find('.info').css('display', 'none');
if($.inArray('merge', act) !== -1) this.$contactListHeader.find('.merge').css('display', ''); this.$contactListHeader.find('.'+act.join(',.')).css('display', '');
else this.$contactListHeader.find('.merge').css('display', 'none');
this.$headeractions.children('.'+act.join(',.')).show();
} else { } else {
this.$contactListHeader.find('.actions').css('display', 'none'); this.$contactListHeader.find('.actions').css('display', 'none');
this.$contactListHeader.find('.name').attr('colspan', '1'); this.$contactListHeader.find('.name').attr('colspan', '1');
@ -266,7 +264,7 @@ OC.Contacts = OC.Contacts || {
} }
}, },
showAction:function(act, show) { showAction:function(act, show) {
this.$headeractions.find('.' + act).toggle(show); this.$contactListHeader.find('.' + act).toggle(show);
}, },
cacheElements: function() { cacheElements: function() {
var self = this; var self = this;