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

refactor survey/answerall to get

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