// remove previous
$tr.find('.action-menu').remove();
- if (this.actions.length > 0) {
- var $el = this._renderInlineAction({
- name: 'menu',
- displayName: '',
- iconClass: 'icon-more',
- altText: t('files', 'Actions'),
- action: this._showMenuClosure
- }, false, context);
-
- $el.addClass('permanent');
- }
+ var $el = this._renderInlineAction({
+ name: 'menu',
+ displayName: '',
+ iconClass: 'icon-more',
+ altText: t('files', 'Actions'),
+ action: this._showMenuClosure
+ }, false, context);
+
+ $el.addClass('permanent');
+
},
/**
// Remove the link. This means that files without a default action fail hard
$tr.find('a.name').attr('href', '#');
- delete this.fileActions.actions.all.Download;
+ this.fileActions.actions.all = {};
}
return $tr;
};
if (hideDownload === 'true') {
this.fileList.$el.find('#headerSelection').remove();
+ this.fileList.$el.find('.summary').find('td:first-child').remove();
}
}
$hideDownloadCheckbox = view.$el.find('.hideDownloadCheckbox');
- expect($hideDownloadCheckbox.length).toBeFalsy();
+ expect($hideDownloadCheckbox.length).toBeTruthy();
});
it('checkbox is checked when the setting is enabled', function () {