From d4ce71374985462e1110431e6aa0683c8f25ddfa Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Thu, 1 Oct 2015 22:54:36 +0200 Subject: [PATCH] display checkboxes properly after file restore --- apps/files_trashbin/js/filelist.js | 4 ++-- core/css/styles.css | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/files_trashbin/js/filelist.js b/apps/files_trashbin/js/filelist.js index febe3a45be..6b624e333a 100644 --- a/apps/files_trashbin/js/filelist.js +++ b/apps/files_trashbin/js/filelist.js @@ -268,12 +268,12 @@ enableActions: function() { this.$el.find('.action').css('display', 'inline'); - this.$el.find(':input:checkbox').css('display', 'inline'); + this.$el.find('input:checkbox').removeClass('u-hidden'); }, disableActions: function() { this.$el.find('.action').css('display', 'none'); - this.$el.find(':input:checkbox').css('display', 'none'); + this.$el.find('input:checkbox').addClass('u-hidden'); }, updateStorageStatistics: function() { diff --git a/core/css/styles.css b/core/css/styles.css index d952a33c24..c0da29b71c 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -183,6 +183,7 @@ html:not(.ie8) input[type="checkbox"].checkbox + label:before { html:not(.ie8) input[type="checkbox"].checkbox:disabled +label:before { opacity: .6; } html:not(.ie8) input[type="checkbox"].checkbox.u-left +label:before { float: left; } +html:not(.ie8) input[type="checkbox"].checkbox.u-hidden + label:before { display: none; } html:not(.ie8) input[type="checkbox"].checkbox--white + label:before { background-image: url('../img/actions/checkbox-white.svg');