From a5d89d3cb8bd12a6acc3c6338d9edf94cde65474 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Thu, 25 Sep 2014 16:13:56 +0530 Subject: added ALIAS_URL to config --- scipy/urls.py | 2 +- static/dajax/jquery.dajax.core.js | 2 +- static/dajaxice/dajaxice.core.js | 2 +- static/website/templates/base.html | 1 + website/templatetags/tags.py | 7 +++++++ 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/scipy/urls.py b/scipy/urls.py index 14eb39b..f4e2aa6 100644 --- a/scipy/urls.py +++ b/scipy/urls.py @@ -11,5 +11,5 @@ urlpatterns = patterns('', url(dajaxice_config.dajaxice_url, include('dajaxice.urls')), # For devel - # url(r'^2014/', include('website.urls', namespace='website')), + url(r'^2014/', include('website.urls', namespace='website')), ) diff --git a/static/dajax/jquery.dajax.core.js b/static/dajax/jquery.dajax.core.js index 0bddd41..ed7eb46 100644 --- a/static/dajax/jquery.dajax.core.js +++ b/static/dajax/jquery.dajax.core.js @@ -46,7 +46,7 @@ var Dajax = { break; case 'red': - window.setTimeout('window.location="/2014/'+elem.url+'";',elem.delay); + window.setTimeout('window.location="'+aliasUrl+elem.url+'";',elem.delay); break; case 'js': diff --git a/static/dajaxice/dajaxice.core.js b/static/dajaxice/dajaxice.core.js index e879d45..82c7153 100644 --- a/static/dajaxice/dajaxice.core.js +++ b/static/dajaxice/dajaxice.core.js @@ -65,7 +65,7 @@ var Dajaxice = { var send_data = 'argv='+encodeURIComponent(JSON.stringify(argv)), oXMLHttpRequest = new XMLHttpRequest, - endpoint = '/2014/dajaxice/'+dajaxice_function+'/'; + endpoint = aliasUrl+'/dajaxice/'+dajaxice_function+'/'; if(method == 'GET'){ endpoint = endpoint + '?' + send_data; diff --git a/static/website/templates/base.html b/static/website/templates/base.html index 13f41d8..cc0220c 100755 --- a/static/website/templates/base.html +++ b/static/website/templates/base.html @@ -90,6 +90,7 @@