Commit e4d6ed9a authored by Denis Chenu's avatar Denis Chenu
Browse files

Fix : show button with url parameters to get

parent b9101938
......@@ -30,7 +30,12 @@ function addUpdateResponse()
var jsonUrl=recomputeVar.jsonurl;
var aUrl=docUrl.split('/');
var surveyid=aUrl[aUrl.indexOf("surveyid")+1];
var controllers=aUrl[aUrl.indexOf("admin")+1];
var controller=aUrl[aUrl.indexOf("admin")+1];
var controller=aUrl[aUrl.indexOf("?r=admin")+1];
if($('table.detailbrowsetable').length>0)// Browse one response
// Find the response id
......@@ -78,7 +83,7 @@ function addUpdateResponse()
$('.menubar').eq(0).find('.menubar-main').find(".menubar-left:last").append("<a class='btn btn-small updateanswers'><i class='icon-refresh'></i>Update all submitted answers</a>");
var jsonurl=$(this).attr('rel');
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 to comment