protected function getHtmlOptions() { $htmlOptions = parent::getHtmlOptions(); $htmlOptions['id'] = $this->getLinkId(); $htmlOptions['class'] = static::LINK_ACTION_ELEMENT_CLASS; return $htmlOptions; }
protected function getHtmlOptions() { $confirmTitle = Zurmo::t('Core', 'Are you sure you want to delete this {modelLabel}?', array('{modelLabel}' => $this->getModelSingularLabel())); $confirmTitle = Yii::app()->format->text($confirmTitle); $htmlOptions = parent::getHtmlOptions(); $htmlOptions['id'] = $this->getLinkId(); $htmlOptions['onclick'] = 'if (!$(this).onAjaxSubmitRelatedListAction("' . $confirmTitle . '", "' . $this->getGridId() . '")){return;};'; return $htmlOptions; }