Commit 1684f2d3 by Csók Tamás

modifications based on merge request

parent b02629f8
...@@ -590,11 +590,6 @@ function addModalConfirmation(func, data) { ...@@ -590,11 +590,6 @@ function addModalConfirmation(func, data) {
}); });
} }
function addOnClickToInput(id, func, param) {
$('input,select').not('textarea').keypress(function(event) {if (event.keyCode == 13) {event.preventDefault();}})
$('#' + id).click(function(){func(param); return false;})
}
function clientInstalledAction(location) { function clientInstalledAction(location) {
setCookie('downloaded_client', true, 365 * 24 * 60 * 60, "/"); setCookie('downloaded_client', true, 365 * 24 * 60 * 60, "/");
window.location.href = location; window.location.href = location;
......
...@@ -1353,8 +1353,7 @@ class ClientCheck(LoginRequiredMixin, TemplateView): ...@@ -1353,8 +1353,7 @@ class ClientCheck(LoginRequiredMixin, TemplateView):
instance = get_object_or_404(Instance, pk=request.POST.get('vm')) instance = get_object_or_404(Instance, pk=request.POST.get('vm'))
if not instance.has_level(request.user, 'operator'): if not instance.has_level(request.user, 'operator'):
raise PermissionDenied() raise PermissionDenied()
response = HttpResponseRedirect(reverse( response = HttpResponseRedirect(instance.get_absolute_url())
'dashboard.views.detail', args=[instance.pk]))
response.set_cookie('downloaded_client', 'True', 365 * 24 * 60 * 60) response.set_cookie('downloaded_client', 'True', 365 * 24 * 60 * 60)
return response return response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment