/**
  * Index Action
  *
  */
 public function indexAction()
 {
     if ($this->getRequest()->getParam('isAjax', false)) {
         Mage_AdminNotification_Model_Survey::saveSurveyViewed(true);
     }
     $this->getResponse()->setBody(Zend_Json::encode(array('survey_decision_saved' => 1)));
 }
 /**
  * End installation
  */
 public function endAction()
 {
     $this->_checkIfInstalled();
     $date = (string) Mage::getConfig()->getNode('global/install/date');
     if ($date !== Mage_Install_Model_Installer_Config::TMP_INSTALL_DATE_VALUE) {
         $this->_redirect('*/*');
         return;
     }
     $this->_getInstaller()->finish();
     Mage_AdminNotification_Model_Survey::saveSurveyViewed(true);
     $this->_prepareLayout();
     $this->_initLayoutMessages('install/session');
     $this->getLayout()->getBlock('content')->append($this->getLayout()->createBlock('install/end', 'install.end'));
     $this->renderLayout();
     Mage::getSingleton('install/session')->clear();
 }