projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
410ac99
)
function for clearing selected files
author
Maciej Tronowski
<mtro@man.poznan.pl>
Tue, 24 Mar 2015 16:33:30 +0000
(17:33 +0100)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Tue, 24 Mar 2015 16:33:30 +0000
(17:33 +0100)
filex/static/filex/filex.js
patch
|
blob
|
history
diff --git
a/filex/static/filex/filex.js
b/filex/static/filex/filex.js
index
81b401c
..
53f7fc6
100644
(file)
--- a/
filex/static/filex/filex.js
+++ b/
filex/static/filex/filex.js
@@
-405,6
+405,14
@@
$(function(){
updateSelectAll: function() {
this.$selectAll.prop('checked', this.selectedFiles().length == this.visibleFiles().length);
+ },
+
+ clearSelection: function() {
+ _.each(this.visibleFiles(), function(item) {
+ item.set('checked', false);
+ });
+
+ this.updateSelectAll();
}
});
});