]> source.dussan.org Git - nextcloud-server.git/commitdiff
Takes nametext inside the anchor tag to fix the issue completely.
authorraghunayyar <me@iraghu.com>
Wed, 2 Oct 2013 16:41:03 +0000 (22:11 +0530)
committerraghunayyar <me@iraghu.com>
Wed, 2 Oct 2013 16:41:03 +0000 (22:11 +0530)
apps/files/templates/part.list.php

index 4e37cfb379f7e4832104b86390856ff76aa304e2..0679da334dedbe907a3b683552bcae6a619230be 100644 (file)
@@ -30,18 +30,15 @@ $totalsize = 0; ?>
                <?php endif; ?>
                <?php if($file['type'] == 'dir'): ?>
                        <a class="name" href="<?php p(rtrim($_['baseURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>" title="">
+                               <span class="nametext">
+                                       <?php print_unescaped(htmlspecialchars($file['name']));?>
+                               </span>
                <?php else: ?>
-                       <a class="name">
+                       <a class="name" href="<?php p(rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>">
                                <label class="filetext" title="" for="select-<?php p($file['fileid']); ?>"></label>
+                               <span class="nametext"><?php print_unescaped(htmlspecialchars($file['basename']));?><span class='extension'><?php p($file['extension']);?></span>
                        </a>
                <?php endif; ?>
-                       <span class="nametext">
-                               <?php if($file['type'] == 'dir'):?>
-                                       <?php print_unescaped(htmlspecialchars($file['name']));?>
-                               <?php else:?>
-                                       <?php print_unescaped(htmlspecialchars($file['basename']));?><span class='extension'><?php p($file['extension']);?></span>
-                               <?php endif;?>
-                       </span>
                        <?php if($file['type'] == 'dir'):?>
                                <span class="uploadtext" currentUploads="0">
                                </span>