1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 15:57:31 +00:00

Fix bug in seafile_access_check

This commit is contained in:
xiez 2012-06-23 10:26:37 +08:00
parent c6146ef370
commit 7a0a5509b7
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@
$(function() {
var req_success = false;
$.ajax({
url: 'http://localhost:13420/seafile_access_check/',
url: '{{ applet_root }}/seafile_access_check/',
dataType: 'jsonp',
jsonpCallback: 'xx',
crossDomain: true,

View File

@ -676,10 +676,12 @@ def repo_download(request):
def seafile_access_check(request):
repo_id = request.GET.get('repo_id', '')
applet_root = get_ccnetapplet_root()
return render_to_response(
'seafile_access_check.html', {
'repo_id': repo_id,
'applet_root': applet_root,
},
context_instance=RequestContext(request))