From 17d2e2f9c78be2d01456f87fb29281584f15110b Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 24 Nov 2017 15:49:06 +0800 Subject: [PATCH] [misc] fix --- media/css/seahub.css | 1 + media/js/base.js | 4 +-- seahub/help/templates/help/base.html | 2 -- seahub/help/templates/help/install.html | 2 +- .../notifications/notification_list.html | 31 +++++++++++++------ .../templates/profile/set_profile.html | 4 +-- seahub/templates/base.html | 8 ++--- 7 files changed, 30 insertions(+), 22 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 704f32fca5..b10d40b266 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -3250,6 +3250,7 @@ button.sf-dropdown-toggle:focus { padding:20px; } .help-con img { + max-width:100%; margin:5px 0; } #right-panel.help-con .hd { diff --git a/media/js/base.js b/media/js/base.js index a50337da6c..ae4b7fb267 100644 --- a/media/js/base.js +++ b/media/js/base.js @@ -106,13 +106,13 @@ function addConfirmTo(op_ele, popup) { op_ele.click(function() { var con = ''; if ($(this).data('target') && popup['con'].indexOf('%s') != -1) { - con = popup['con'].replace('%s', '' + HTMLescape($(this).data('target')) + ''); + con = popup['con'].replace('%s', '' + HTMLescape($(this).data('target')) + ''); } else { con = popup['con']; } $('#confirm-con').html('

' + popup['title'] + '

' + con + '

'); $('#confirm-popup').modal({appendTo:'#main'}); - $('#simplemodal-container').css({'height':'auto'}); + $('#simplemodal-container').css({'width': 'auto', 'height':'auto'}); $('#confirm-yes').data('url', $(this).data('url')).click(function() { if (popup.post) { // use form post $('
', { diff --git a/seahub/help/templates/help/base.html b/seahub/help/templates/help/base.html index 989b480b26..f084927a2b 100644 --- a/seahub/help/templates/help/base.html +++ b/seahub/help/templates/help/base.html @@ -38,7 +38,5 @@ $('.side-nav li').each(function() { } } }); - -$('.help-con img').css('max-width', $('.help-con').width() - 2); {% endblock %} diff --git a/seahub/help/templates/help/install.html b/seahub/help/templates/help/install.html index f3dfc5f952..df227c3768 100644 --- a/seahub/help/templates/help/install.html +++ b/seahub/help/templates/help/install.html @@ -27,7 +27,7 @@

{% trans "You can also create a library from a local folder." %}

- +
diff --git a/seahub/notifications/templates/notifications/notification_list.html b/seahub/notifications/templates/notifications/notification_list.html index b7c30a3234..a07320e337 100644 --- a/seahub/notifications/templates/notifications/notification_list.html +++ b/seahub/notifications/templates/notifications/notification_list.html @@ -11,15 +11,19 @@ {% csrf_token %}

{% trans "Add new notification" %}


+

{% if notes %} - - - - + + + + + + + {% for note in notes %} {% endfor %} +
{% trans "Notification Detail" %}{% trans "Operations" %}
{% trans "Notification Detail" %}{% trans "Operations" %}
{{ note.message }} @@ -28,12 +32,13 @@ {% endif %} {% if note.primary != 1 %} - {% trans "Set to current" %} + {% trans "Set to current" %} {% endif %} {% trans "Delete" %}
{% else %}

{% trans "Empty" %}

@@ -44,17 +49,25 @@ {% endblock %} diff --git a/seahub/profile/templates/profile/set_profile.html b/seahub/profile/templates/profile/set_profile.html index 9a2a6bf9b1..bf82884fa8 100644 --- a/seahub/profile/templates/profile/set_profile.html +++ b/seahub/profile/templates/profile/set_profile.html @@ -76,7 +76,7 @@
{% endif %} - + @@ -221,7 +221,7 @@ $('#user-avatar-input').change(function() { $('#user-avatar-form').submit(); }); -$('#user-basic-info .submit').css({'margin-left': $('#user-basic-info label').outerWidth(true)}); +$('#user-basic-info .submit').css({'margin-left': $('#user-basic-info label').outerWidth(true)}).removeClass('vh'); $('#account-delete-btn').click(function () { var title = "{% trans "Delete Account" %}", diff --git a/seahub/templates/base.html b/seahub/templates/base.html index 35787d1fa9..628af9ce14 100644 --- a/seahub/templates/base.html +++ b/seahub/templates/base.html @@ -34,14 +34,14 @@