protected function submitEditTrigger()
    {
        if ($this->isPosted('delete')) {
            $this->deleteTrigger();
        } else if ($this->isPosted('save') && $this->validateEditTrigger()) {
            if (isset($this->data_trigger['trigger_id'])) {
                $this->updateTrigger();
            } else {
                $this->addTrigger();
            }
        }
    }