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:
parent
c6146ef370
commit
7a0a5509b7
@ -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,
|
||||
|
4
views.py
4
views.py
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user