2012-05-14 21:51:55 +08:00
|
|
|
{% extends "myhome_base.html" %}
|
|
|
|
|
|
|
|
{% block right_panel %}
|
|
|
|
<p class="error hide">请确认本地Seafile程序已启动。</p>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
var req_success = false;
|
|
|
|
$.ajax({
|
2012-06-07 11:44:42 +08:00
|
|
|
url: 'http://localhost:13420/seafile_access_check/',
|
2012-05-14 21:51:55 +08:00
|
|
|
dataType: 'jsonp',
|
|
|
|
jsonpCallback: 'xx',
|
|
|
|
crossDomain: true,
|
|
|
|
error: function() {
|
|
|
|
$('.error').removeClass('hide');
|
|
|
|
},
|
|
|
|
success: function() {
|
|
|
|
req_success = true;
|
2012-05-16 22:44:24 +08:00
|
|
|
location.href = '{{ SITE_ROOT }}download/repo/?repo_id={{ repo_id }}';
|
2012-05-14 21:51:55 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
setTimeout(function() {
|
|
|
|
if (!req_success) {
|
|
|
|
$('.error').removeClass('hide');
|
|
|
|
}
|
|
|
|
}, 300);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|