projects
/
qcg-portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gridftp ui: clear selection for hidden items
[qcg-portal.git]
/
filex
/
static
/
filex
/
filex.js
diff --git
a/filex/static/filex/filex.js
b/filex/static/filex/filex.js
index
18d78d4
..
7eabdd2
100644
(file)
--- a/
filex/static/filex/filex.js
+++ b/
filex/static/filex/filex.js
@@
-141,8
+141,7
@@
$(function(){
var data = this.model.toJSON();
data['url_params'] = $.param({
host: this.view.host,
var data = this.model.toJSON();
data['url_params'] = $.param({
host: this.view.host,
- path: this.view.path.full(),
- name: this.model.get('name')
+ path: this.view.path.full() + '/' + this.model.get('name')
});
data['cid'] = this.model.cid;
});
data['cid'] = this.model.cid;
@@
-153,7
+152,11
@@
$(function(){
},
toggleHidden: function() {
},
toggleHidden: function() {
- this.$el.toggleClass('hidden', this.model.isHidden() && !this.view.showHidden());
+ var isHidden = this.model.isHidden() && !this.view.showHidden();
+ this.$el.toggleClass('hidden', isHidden);
+
+ if (isHidden && this.model.get('checked'))
+ this.model.toggle();
},
toggleChecked: function(obj, value) {
},
toggleChecked: function(obj, value) {
@@
-350,7
+353,7
@@
$(function(){
error: function(collection, response) {
view.files.reset();
error: function(collection, response) {
view.files.reset();
- var msg = (response.responseJSON || {}).msg || 'Błąd serwera';
+ var msg = (response.responseJSON || {}).error || 'Błąd serwera';
view.$noItems.hide();
view.$error.find('.msg').text(msg);
view.$noItems.hide();
view.$error.find('.msg').text(msg);