Commit c90f5779 authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

refactor survey/answerall to get

parent ff81a59c
......@@ -13,8 +13,7 @@
'index' => 'survey.controllers.answer.IndexAction',
'all'=>'survey.controllers.answer.AllAction',
'admindirectory'=>'survey.controllers.answer.admin.DirectoryAction',
'forms' => 'survey.controllers.answer.OformsAction',
'all' => 'survey.controllers.answer.AllAction',
'get' => 'survey.controllers.answer.GetAction',
);
}
}
<?php
class AllAction extends CTKAction
class GetAction extends CTKAction
{
//if $slug : getd all the forms for an element.slug
//if $id : opens the forms
......
......@@ -45,7 +45,7 @@ jQuery(document).ready(function() {
mylog.log("render","/modules/costum/views/tpls/forms/cplx/answers.php");
$('.showAnswersBtn').off().on("click",function() {
getAjax("#central-container",baseUrl+"/survey/answer/all/form/"+$(this).data("id"),function(){
getAjax("#central-container",baseUrl+"/survey/answer/get/form/"+$(this).data("id"),function(){
},"html");
});
......
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