E
E
EVOSandru62014-11-18 07:10:47
JavaScript
EVOSandru6, 2014-11-18 07:10:47

Why doesn't the jquery ui opendialog close when the cross is clicked?

I use the CJuiDialog widget in Yii, all the intended functionality is performed except for closing the window if you do not want to enter data into the fields.
Here are the settings entered, maybe something is blocked or not registered?

$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
        'id' => 'mydialog',
        'options' => array(
            'title' => 'Отправить сообщение',
            'autoOpen' => false,
            'modal' => true,
            'resizable'=> false,
        ),
    ));
    $qForm = new QuickForm;
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'quick-form',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
        'htmlOptions'=>array(
            'class'=>'form',
        ),
        'action' => array('site/quick'), // когда форма показывается и в других контроллерах, не только 'site', то я в каждый из этих контроллеров вставил actionQuick, a здесь указал — array('quick'); почему-то не получается с array('//site/quick')
    ));
    ?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question