From 94c96751cc0f1ac9de6a7c008e496b47f01a3d1d Mon Sep 17 00:00:00 2001
From: llj
Date: Tue, 26 Apr 2016 18:16:41 +0800
Subject: [PATCH] [accessibility] modified 'file view', 'file edit', 'shared
link'
---
media/css/seahub.css | 1 -
seahub/templates/file_edit.html | 4 ++--
seahub/templates/view_file_base.html | 14 +++++++-------
seahub/templates/view_shared_dir.html | 26 ++++++++++++--------------
4 files changed, 21 insertions(+), 24 deletions(-)
diff --git a/media/css/seahub.css b/media/css/seahub.css
index 0a7772e8ae..a1a0396372 100644
--- a/media/css/seahub.css
+++ b/media/css/seahub.css
@@ -2382,7 +2382,6 @@ button.dropdown-toggle:focus {
text-align:right;
}
#file-enc {
- border:1px solid #ddd;
padding:0;
}
#file-view-tip {
diff --git a/seahub/templates/file_edit.html b/seahub/templates/file_edit.html
index 8290025d1f..1f233518e5 100644
--- a/seahub/templates/file_edit.html
+++ b/seahub/templates/file_edit.html
@@ -127,8 +127,8 @@
{% if not err and repo.encrypted %}
-
+
{% if mode == 'list' %}
-
+
{% else %}
-
+
{% endif %}
-
+
{% if mode == 'grid' %}
-
+
{% else %}
-
+
{% endif %}
{% if not traffic_over_limit %}
@@ -65,8 +65,8 @@
{{ dirent.last_modified|translate_seahub_time }} |
{% if not traffic_over_limit %}
-
-
+
+
{% endif %}
|
@@ -97,8 +97,8 @@
{{ dirent.last_modified|translate_seahub_time }} |
{% if not traffic_over_limit %}
-
-
+
+
{% endif %}
|
@@ -225,13 +225,11 @@ $(function() {
$('.grid-item').hover(
function () {
- $('.img-link', $(this)).addClass('hl');
- $('.text-link', $(this)).addClass('hl');
+ $('.img-link, .text-link', $(this)).addClass('hl');
$('.op-icon', $(this)).removeClass('vh');
},
function () {
- $('.img-link', $(this)).removeClass('hl');
- $('.text-link', $(this)).removeClass('hl');
+ $('.img-link, .text-link', $(this)).removeClass('hl');
$('.op-icon', $(this)).addClass('vh');
}
);