# HG changeset patch # User Sverre Rabbelier # Date 1235298744 0 # Node ID 37eb949c3267cd9cb51de9f56adaa342579cd05d # Parent 378c844bf52cc5200ced63c68fead197e7f654cc Add some missing useJavaScript calls Patch by: Sverre Rabbelier diff -r 378c844bf52c -r 37eb949c3267 app/soc/views/helper/decorators.py --- a/app/soc/views/helper/decorators.py Sun Feb 22 10:31:45 2009 +0000 +++ b/app/soc/views/helper/decorators.py Sun Feb 22 10:32:24 2009 +0000 @@ -96,6 +96,7 @@ check_kwargs = kwargs.copy() context = responses.getUniversalContext(request) + responses.useJavaScript(context, self._params['js_uses_all']) id = context['account'] user = context['user'] diff -r 378c844bf52c -r 37eb949c3267 app/soc/views/helper/responses.py --- a/app/soc/views/helper/responses.py Sun Feb 22 10:31:45 2009 +0000 +++ b/app/soc/views/helper/responses.py Sun Feb 22 10:32:24 2009 +0000 @@ -67,7 +67,9 @@ """ if not context: + from soc.views.helper import params context = getUniversalContext(request) + useJavaScript(context, params.DEF_JS_USES_LIST) if response_args is None: response_args = {} @@ -177,7 +179,9 @@ context = error.context if not context: + from soc.views.helper import params context = getUniversalContext(request) + useJavaScript(context, params.DEF_JS_USES_LIST) if not template: template = []