summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-30 14:51:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-30 14:51:29 +0200
commit38989c3458b39a0176071607ce96578125ecb367 (patch)
treed1161803420bc37557b12215f51065c0f833df3f
parentdca2d9311adb1ee7ce775958cec2fa94ea7756ad (diff)
parent2f58e798ec4becdea37b5508574ee8c0440edb46 (diff)
downloadnextcloud-server-38989c3458b39a0176071607ce96578125ecb367.tar.gz
nextcloud-server-38989c3458b39a0176071607ce96578125ecb367.zip
Merge pull request #8404 from owncloud/fix-checkboxes
Fixed too generic checkbox and link selectors
-rw-r--r--apps/files/js/filelist.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 8654cb14b36..8896a8e23a8 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -92,8 +92,8 @@ window.FileList = {
FileList.breadcrumb.resize(width, false);
});
- this.$fileList.on('click','td.filename a', _.bind(this._onClickFile, this));
- this.$fileList.on('change', 'td.filename input:checkbox', _.bind(this._onClickFileCheckbox, this));
+ this.$fileList.on('click','td.filename>a.name', _.bind(this._onClickFile, this));
+ this.$fileList.on('change', 'td.filename>input:checkbox', _.bind(this._onClickFileCheckbox, this));
this.$el.find('#select_all').click(_.bind(this._onClickSelectAll, this));
this.$el.find('.download').click(_.bind(this._onClickDownloadSelected, this));
this.$el.find('.delete-selected').click(_.bind(this._onClickDeleteSelected, this));
@@ -107,7 +107,7 @@ window.FileList = {
* @param state true to select, false to deselect
*/
_selectFileEl: function($tr, state) {
- var $checkbox = $tr.find('input:checkbox');
+ var $checkbox = $tr.find('td.filename>input:checkbox');
var oldData = !!this._selectedFiles[$tr.data('id')];
var data;
$checkbox.prop('checked', state);
@@ -156,7 +156,7 @@ window.FileList = {
else {
this._lastChecked = $tr;
}
- var $checkbox = $tr.find('input:checkbox');
+ var $checkbox = $tr.find('td.filename>input:checkbox');
this._selectFileEl($tr, !$checkbox.prop('checked'));
this.updateSelectionSummary();
} else {
@@ -191,7 +191,7 @@ window.FileList = {
*/
_onClickSelectAll: function(e) {
var checked = $(e.target).prop('checked');
- this.$fileList.find('td.filename input:checkbox').prop('checked', checked)
+ this.$fileList.find('td.filename>input:checkbox').prop('checked', checked)
.closest('tr').toggleClass('selected', checked);
this._selectedFiles = {};
this._selectionSummary.clear();