Skip to content

Commit

Permalink
Fixed issue #10098: Don't hide save-button at page bottom, and hide s…
Browse files Browse the repository at this point in the history
…ave-button at bar
  • Loading branch information
olleharstedt committed Dec 21, 2015
1 parent 892e3ad commit 30c2db9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions application/controllers/admin/assessments.php
Expand Up @@ -75,8 +75,10 @@ protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls =
$aData['sidebar']['state'] = "close";
$iSurveyID=$aData['surveyid'];
$surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo;
$aData['title_bar']['title'] = $surveyinfo['surveyls_title']."(".gT("ID").":".$iSurveyID.")";
$aData['surveybar']['savebutton']['form'] = true;
// TODO: Hide this, because submitting first form on the page means
// submitting the 'delete' form in the table.
//$aData['title_bar']['title'] = $surveyinfo['surveyls_title']."(".gT("ID").":".$iSurveyID.")";
//$aData['surveybar']['savebutton']['form'] = true;
$aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/'.$iSurveyID;
$aData['gid']=null;
App()->getClientScript()->registerScriptFile( App()->getAssetManager()->publish( ADMIN_SCRIPT_PATH . 'assessments.js' ));
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/assessments_view.php
Expand Up @@ -199,7 +199,7 @@
<?php echo getEditor("assessment-text","assessmentmessage_$assessmentlang", "[".gT("Message:", "js")."]",$surveyid,$gid,null,$action); ?>
</li>
<li style="text-align:center;">
<input type='submit' class="hidden" value='<?php eT("Save");?>'/>
<input type='submit' class="btn btn-default" value='<?php eT("Save");?>'/>
</li>
</ul>
</div>
Expand Down

0 comments on commit 30c2db9

Please sign in to comment.