From 35d044c121fda51ca34d76e5faf73b21fbed8b7a Mon Sep 17 00:00:00 2001 From: Erik Pellikka Date: Wed, 23 Mar 2016 07:31:58 -0400 Subject: [PATCH] sidebar click modification --- apps/files/css/files.css | 20 +++++++++++++++++--- apps/files/js/filelist.js | 3 ++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/apps/files/css/files.css b/apps/files/css/files.css index bfa5340fe0..d20ab102ba 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -468,6 +468,7 @@ html.ie8 #fileList tr.selected td.filename>.selectCheckBox { position: relative; width: 100%; padding-left: 0; + padding-right:0; -webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms; } @@ -572,13 +573,26 @@ html.ie8 .column-mtime .selectedActions { opacity: 0; display:none; } -#fileList a.action.action-share, -#fileList a.action.action-menu { +#fileList a.action.action-share { padding: 17px 14px; } +#fileList a.action.action-menu { + padding-top: 17px; + padding-bottom: 17px; + padding-left:14px; + padding-right:0px; +} + +#fileList .filesize { + padding-top:0px; + padding-bottom:0px; + padding-left:60px; + padding-right:15px; +} + #fileList .popovermenu { - margin-right: 21px; + margin-right: -5px; } .ie8 #fileList .popovermenu { margin-top: -10px; diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index fcdf6caaa5..47aff25678 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -271,7 +271,8 @@ this.updateSearch(); - this.$fileList.on('click','td.filename>a.name', _.bind(this._onClickFile, this)); + this.$fileList.on('click','td.filename>a.name, td.filesize, td.date', _.bind(this._onClickFile, this)); + this.$fileList.on('change', 'td.filename>.selectCheckBox', _.bind(this._onClickFileCheckbox, this)); this.$el.on('urlChanged', _.bind(this._onUrlChanged, this)); this.$el.find('.select-all').click(_.bind(this._onClickSelectAll, this));