summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-22 11:52:43 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-22 11:52:43 +0100
commitd2b3915142e9f7b67a8110a016668a28bc574781 (patch)
tree809de396b6ef134f70b2a0168458fc95a616098e /module/web/static/js/views
parentdifferent server attributes in header (diff)
downloadpyload-d2b3915142e9f7b67a8110a016668a28bc574781.tar.xz
show button when files are selected
Diffstat (limited to 'module/web/static/js/views')
-rw-r--r--module/web/static/js/views/selectionView.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/web/static/js/views/selectionView.js b/module/web/static/js/views/selectionView.js
index 4f235b2f5..546cda847 100644
--- a/module/web/static/js/views/selectionView.js
+++ b/module/web/static/js/views/selectionView.js
@@ -65,10 +65,14 @@ define(['jquery', 'backbone', 'underscore', 'app'],
else if (files + packs === 0 && this.current > 0)
this.$el.slideIn();
- if (files > 0)
+ if (files > 0) {
this.actionBar.addClass('iconf-check').removeClass('iconf-check-empty');
- else
+ App.dashboard.packageUL.addClass('ui-files-selected');
+ }
+ else {
this.actionBar.addClass('iconf-check-empty').removeClass('iconf-check');
+ App.dashboard.packageUL.removeClass('ui-files-selected');
+ }
this.current = files + packs;
},