public function overrideConfirm()
    {
        if ($this->overrideSystemConfirm) {

            $ok = Yii::t('noty', 'Ok');
            $cancel = Yii::t('noty', 'Cancel');

            $this->view->registerJs("
                yii.confirm = function(message, ok, cancel) {
                
                    notie.confirm(message, '$ok', '$cancel', function() {
                        !ok || ok();
                    });
                    
                }
            ");
        }
    }