Skip to content

Commit

Permalink
Dev: removed questionIndexHelper::getIndexButton() and questionIndexH…
Browse files Browse the repository at this point in the history
…elper::getIndexLink()
  • Loading branch information
LouisGac committed May 10, 2017
1 parent 5ca0cf7 commit 5ec8f4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
2 changes: 0 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -250,8 +250,6 @@ public function run($surveyid,$args)
$thissurvey['aQuestionIndex']['bShow'] = false;
if ($thissurvey['questionindex']){
if(!$previewquestion && !$previewgrp){
$questionindex = ls\helpers\questionIndexHelper::getInstance()->getIndexButton();
$questionindexmenu = ls\helpers\questionIndexHelper::getInstance()->getIndexLink();
$thissurvey['aQuestionIndex']['items'] = ls\helpers\questionIndexHelper::getInstance()->getIndexItems();

if($thissurvey['questionindex'] > 1){
Expand Down
28 changes: 0 additions & 28 deletions application/helpers/questionIndexHelper.php
Expand Up @@ -237,35 +237,7 @@ private function getIndexItemsQuestions($type)
return $stepIndex;
}

/**
* Return html for list of link
* @return string : html to be used
*/
public function getIndexLink()
{
$indexItems=$this->getIndexItems();
if(!empty($indexItems)){
Yii::app()->getClientScript()->registerScript("activateActionLink","activateActionLink();",\CClientScript::POS_END);
return $this->getIndexHtml($this->surveyFormat,'link');
}else{
return '';
}
}

/**
* Return html for list of button
* @return string : html to be used
*/
public function getIndexButton()
{
$indexItems=$this->getIndexItems();
if(!empty($indexItems)){
Yii::app()->getClientScript()->registerScript("manageIndex","manageIndex();",\CClientScript::POS_END);
return $this->getIndexHtml($this->surveyFormat);
}else{
return '';
}
}
/**
* Return html with params
* @param string : $surveyFormat (G|S)
Expand Down

0 comments on commit 5ec8f4f

Please sign in to comment.