summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/fileView.js
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-28 20:20:01 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-28 20:20:01 +0100
commit6b84b9c69ed75baee9c2cdfa758eddcec10b8b23 (patch)
treebd753ec5a8988c798356a4f94de2034fb568b439 /module/web/static/js/views/fileView.js
parentprepared dashboard actionbar (diff)
downloadpyload-6b84b9c69ed75baee9c2cdfa758eddcec10b8b23.tar.xz
generate js_apitypes, updated lodash, working type filters on webui
Diffstat (limited to 'module/web/static/js/views/fileView.js')
-rw-r--r--module/web/static/js/views/fileView.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/module/web/static/js/views/fileView.js b/module/web/static/js/views/fileView.js
index 3a4183289..f4f228559 100644
--- a/module/web/static/js/views/fileView.js
+++ b/module/web/static/js/views/fileView.js
@@ -14,6 +14,7 @@ define(['jquery', 'backbone', 'underscore', 'app', 'views/abstract/itemView'],
initialize: function() {
this.listenTo(this.model, 'change', this.render);
+ this.listenTo(this.model, 'change:visible', this.visibility_changed);
this.listenTo(this.model, 'remove', this.destroy);
},
@@ -45,7 +46,10 @@ define(['jquery', 'backbone', 'underscore', 'app', 'views/abstract/itemView'],
else
this.$el.removeClass('ui-selected');
- this.$('.iconf-chevron-down').dropdown();
+ if (this.model.get('visible'))
+ this.$el.show();
+ else
+ this.$el.hide();
return this;
},
@@ -57,6 +61,10 @@ define(['jquery', 'backbone', 'underscore', 'app', 'views/abstract/itemView'],
this.model.set('selected', !checked, {silent: true});
this.$el.toggleClass('ui-selected');
App.vent.trigger('file:selection');
+ },
+
+ visibility_changed: function() {
+
}
});