From 90a41ef26abaacddd58c1e2e4c687935214e4f1a Mon Sep 17 00:00:00 2001 From: rnveach Date: Fri, 17 Jan 2014 11:46:44 -0500 Subject: fixed selector string and removed all checkbox if it was selected --- apps/files/js/files.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/files/js/files.js b/apps/files/js/files.js index fdaa3aa3342..999d3eee0c8 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -610,11 +610,12 @@ function procesSelection() { return el.type==='dir'; }); if (selectedFiles.length === 0 && selectedFolders.length === 0) { - $('#headerName>span.name').text(t('files','Name')); + $('#headerName span.name').text(t('files','Name')); $('#headerSize').text(t('files','Size')); $('#modified').text(t('files','Modified')); $('table').removeClass('multiselect'); $('.selectedActions').hide(); + $('#select_all').removeAttr('checked'); } else { $('.selectedActions').show(); -- cgit v1.2.3 From a41440436cfb051d8075f72eb45d470feb1d15d7 Mon Sep 17 00:00:00 2001 From: rnveach Date: Fri, 17 Jan 2014 11:49:00 -0500 Subject: added trigger to redo selection text on a directory change --- apps/files/js/filelist.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 473bcf25f2d..3857ba10fa0 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -20,6 +20,8 @@ var FileList={ Files.setupDragAndDrop(); } FileList.updateFileSummary(); + procesSelection(); + $fileList.trigger(jQuery.Event("updated")); }, createRow:function(type, name, iconurl, linktarget, size, lastModified, permissions) { -- cgit v1.2.3