diff --git a/media/css/seahub.css b/media/css/seahub.css index 90be58214d..7a4693a92b 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -1965,7 +1965,8 @@ textarea:-moz-placeholder {/* for FF */ border:0; } #shared-link-text { - vertical-align:middle; /*for ie 7*/ + /*vertical-align:middle; for ie 7*/ + background:transparent; } .file-op { margin-top:0.8em; diff --git a/seahub/templates/repo.html b/seahub/templates/repo.html index 8e99c1d16e..f0ef0fe711 100644 --- a/seahub/templates/repo.html +++ b/seahub/templates/repo.html @@ -326,42 +326,43 @@ -
-

{% trans 'Share' %}

+
+

{% trans 'Share' %}

- + -
-
{% csrf_token %} - - - - - - - - - -

{% trans 'Tip: must be a registered user.' %}

- -
-
- +
+
{% csrf_token %} + + + + + + + + + +

{% trans 'Tip: must be a registered user.' %}

+ +
+
+ +
@@ -695,11 +696,11 @@ $('.file-share').click(function() { $('#file-share .op-target').html(trimFilename(filename, 30)); $('#shared-link-text, #link-send-form input[name="file_shared_link"]').val(link); $('#main').append('

' + link + '

'); - $('#shared-link-text').css({'width':$('#linkwidth').width() + 20}); - $('#file-share').modal({'focus':false}); // in ff: if 'focus' is true, 'shared-link-text' gets the focus + $('#shared-link-text').css({'width':$('#linkwidth').width() + 25}); + $('#file-share').modal({appendTo: "#main",'focus':false, containerCss:{"padding": "10px 0 0"}}); // in ff: if 'focus' is true, 'shared-link-text' gets the focus $("#repo-share-tabs").tabs(); $('#linkwidth').remove(); - $('#simplemodal-container').css({'height':'auto', 'width': '400px'}); + $('#simplemodal-container').css({'height':'auto'}); } if ($(this).data('link')) { showPopup($(this).data('link')); @@ -927,12 +928,12 @@ function renderDirTree(container, repo_data) { item = { 'data': o.name, 'attr': { 'repo_id': o.repo_id, 'type': o.type }, - 'state': 'closed', + 'state': 'closed' }; } else { item = { 'data': o.name, - 'attr': {'type': o.type }, + 'attr': {'type': o.type } }; } items.push(item); diff --git a/seahub/templates/snippets/shared_link_js.html b/seahub/templates/snippets/shared_link_js.html index 46479e28c6..e36fe300e5 100644 --- a/seahub/templates/snippets/shared_link_js.html +++ b/seahub/templates/snippets/shared_link_js.html @@ -72,7 +72,7 @@ $('#send-shared-link').click(function() { // for file_view.html and subdir page $('#send-link').click(function() { // for 'file-share' in repo.html $(this).addClass('hide'); var input = $('#link-send-input'); - input.css({'width': $('#file-share').width() - parseInt(input.css('padding-left')) - parseInt(input.css('padding-right')) - parseInt(input.css('border-left-width')) - parseInt(input.css('border-right-width'))}); + input.css({'width': $('#shared-link').width() - parseInt(input.css('padding-left')) - parseInt(input.css('padding-right')) - parseInt(input.css('border-left-width')) - parseInt(input.css('border-right-width'))}); $('#link-send-form').removeClass('hide'); addAutocomplete('#link-send-input', '#link-send-form', share_list); });