From 81b4904c78f98d3c42c85463488eaa1765c13c28 Mon Sep 17 00:00:00 2001
From: raghunayyar <me@iraghu.com>
Date: Wed, 2 Oct 2013 21:13:07 +0530
Subject: [PATCH] File Selected on Click instead of download.

---
 apps/files/css/files.css           | 6 ++++++
 apps/files/templates/part.list.php | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index b3ecd1dab9..82b3024231 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -228,6 +228,12 @@ table td.filename form { font-size:.85em; margin-left:3em; margin-right:3em; }
 	-webkit-transition:background-image 500ms; -moz-transition:background-image 500ms; -o-transition:background-image 500ms; transition:background-image 500ms;
 }
 
+#fileList tr td.filename .name {
+	position: absolute;
+	width: 100%;
+	height: 50px;
+}
+
 #uploadsize-message,#delete-confirm { display:none; }
 
 /* File actions */
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index 1e4d4d11c9..ed3e3a2d94 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -31,7 +31,7 @@ $totalsize = 0; ?>
 		<?php if($file['type'] == 'dir'): ?>
 			<a class="name" href="<?php p(rtrim($_['baseURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>" title="">
 		<?php else: ?>
-			<a class="name" href="<?php p(rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>" title="">
+			<label class="name" title="" for="select-<?php p($file['fileid']); ?>"></label>
 		<?php endif; ?>
 			<span class="nametext">
 				<?php if($file['type'] == 'dir'):?>
-- 
GitLab