projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b713d9c
)
fix select all checkbox
author
Maciej Tronowski
<mtro@man.poznan.pl>
Mon, 13 Apr 2015 14:10:46 +0000
(16:10 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Mon, 13 Apr 2015 14:10:46 +0000
(16:10 +0200)
filex/static/filex/filex.js
patch
|
blob
|
history
diff --git
a/filex/static/filex/filex.js
b/filex/static/filex/filex.js
index
10dc6bc
..
5132ec7
100644
(file)
--- a/
filex/static/filex/filex.js
+++ b/
filex/static/filex/filex.js
@@
-387,7
+387,14
@@
$(function(){
},
updateSelectAll: function() {
- this.$selectAll.prop('checked', this.selectedFiles().length == this.visibleFiles().length);
+ if (this.visibleFiles().length) {
+ this.$selectAll.prop('disabled', false);
+ this.$selectAll.prop('checked', this.selectedFiles().length == this.visibleFiles().length);
+ }
+ else {
+ this.$selectAll.prop('disabled', true);
+ this.$selectAll.prop('checked', false);
+ }
},
clearSelection: function() {