1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 10:22:46 +00:00

modified for ie

This commit is contained in:
llj
2013-01-08 17:43:29 +08:00
parent e536fbfef8
commit cd385c2ca4
4 changed files with 22 additions and 14 deletions

View File

@@ -596,6 +596,7 @@ textarea:-moz-placeholder {/* for FF */
}
.simple-input-popup .long-input {
width:99%;
*width:252px;
}
/*ui-autocomplete*/
@@ -713,6 +714,9 @@ textarea:-moz-placeholder {/* for FF */
text-align:center;
margin:0 1px 5px 1px;
}
.mygroup {
*display:inline; /* for ie 6,7 */
}
.mygroup .name {
display:inline-block;
width:100%;
@@ -1161,6 +1165,9 @@ textarea:-moz-placeholder {/* for FF */
width:315px;
margin:0 17px 25px 0;
}
.group-list .group {
*display:inline; /* for ie 6,7 */
}
.group .txt {
color:#333;
width:250px;
@@ -1402,6 +1409,9 @@ textarea:-moz-placeholder {/* for FF */
#shared-link-text {
border:0;
}
#shared-link-text {
vertical-align:middle; /*for ie 7*/
}
.file-op {
margin-top:0.8em;
}

View File

@@ -25,7 +25,7 @@
<div class="file-op fright">
<input id="shared-link" class="hide" type="text" readonly="readonly" value="{{ file_shared_link }}" />
<button data="{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{ path|urlencode }}" id="get-shared-link">{% trans "Share link"%}</button>
<button data="{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{ path|urlencode }}" id="get-shared-link" class="hide">{% trans "Share link"%}</button>
<button id="send-shared-link" class="hide">{% trans "Send"%}</button>
<button data="{% url 'remove_shared_link' %}?t={{ fileshare.token }}" id="rm-shared-link" class="hide">{% trans "Delete"%}</button>
{% if is_starred %}

View File

@@ -19,7 +19,7 @@
<div class="fright">
{% if path != '/' %}
<input id="shared-link" class="hide" type="text" readonly="readonly" value="{{ dir_shared_link }}" />
<button data="{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{ path|urlencode }}&type=d" id="get-shared-link">{% trans "Share link"%}</button>
<button data="{% url 'get_shared_link' %}?repo_id={{ repo.id }}&p={{ path|urlencode }}&type=d" id="get-shared-link" class="hide">{% trans "Share link"%}</button>
<button id="send-shared-link" class="hide">{% trans "Send"%}</button>
<button data="{% url 'remove_shared_link' %}?t={{ fileshare.token }}" id="rm-shared-link" class="hide">{% trans "Delete"%}</button>
{% endif %}
@@ -267,7 +267,7 @@
<form id="add-new-dir-form" action="" method="post" class="simple-input-popup hide">{% csrf_token %}
<h3>{% trans "New Directory" %}</h3>
<label>{% trans "Directory Name" %}</label>
<label>{% trans "Directory Name" %}</label><br /><!-- <br/> for ie 7 -->
<input type="hidden" name="repo_id" value="{{ repo.id }}" />
<input type="hidden" name="parent_dir" value="{{ path }}" />
<input type="text" name="new_dir_name" value="" class="long-input" maxlength="{{max_file_name}}"/><br />
@@ -280,13 +280,13 @@
<h3>{% trans "New File" %}</h3>
<div id="featured-filetype">
<label>{% trans "Featured File Type" %}</label><br />
<button type="button" data="seaf" title="{% trans "Click to choose" %}">seaf</button> <span>{% trans "online Rich Text format ( experimental ) ." %}</span> <a href="http://www.seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}help/seaf/" target="_blank">{% trans 'more' %}</a><br />
<button type="button" data="md" title="{% trans "Click to choose" %}">markdown</button> <span>{% trans "simple markup format." %}</span> <a href="http://www.seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}help/markdown/" target="_blank">{% trans 'more' %}</a>
<button type="button" data="seaf" title="{% trans "Click to choose" %}">seaf</button> <span>{% trans "online Rich Text format (experimental)." %}</span> <a href="http://www.seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}help/seaf/" target="_blank">{% trans 'Details' %}</a><br />
<button type="button" data="md" title="{% trans "Click to choose" %}">markdown</button> <span>{% trans "simple markup format." %}</span> <a href="http://www.seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}help/markdown/" target="_blank">{% trans 'Details' %}</a>
</div>
<label>{% trans "File Name" %}</label>
<label>{% trans "File Name" %}</label><br/>
<input type="hidden" name="repo_id" value="{{ repo.id }}" />
<input type="hidden" name="parent_dir" value="{{ path }}" />
<input type="text" name="new_file_name" value="" class="long-input" maxlength="{{max_file_name}}"/>
<input type="text" name="new_file_name" value="" class="long-input" maxlength="{{max_file_name}}"/><br />
<p class="error hide"></p>
<input type="submit" value="{% trans "Submit"%}" class="submit" />
<button class="simplemodal-close">{% trans "Cancel"%}</button>
@@ -768,7 +768,7 @@ $('#add-new-file-form, #add-new-dir-form, #rename-form').submit(function() {
var post_url = '';
var post_data = {
'repo_id': form.find('input[name="repo_id"]').val(),
'parent_dir': form.find('input[name="parent_dir"]').val(),
'parent_dir': form.find('input[name="parent_dir"]').val()
};
if (form_id == 'add-new-file-form') {

View File

@@ -10,14 +10,12 @@ function hideLink() {
}
function setLinkWidth() {
var link = $('#shared-link');
link.before('<p class="hide">' + link.val() + '</p>');
link.css('width', link.prev().width() + 2);
link.prev().remove();
}
if ($.trim($('#shared-link').val())) {
setLinkWidth();
$('#main').append('<p id="linkcp" class="hide">' + link.val() + '</p>');
link.css('width', $('#linkcp').width() + 2);
$('#linkcp').remove();
}
{% if fileshare.token %}
setLinkWidth();
showLink();
{% else %}
hideLink();