Answer the question
In order to leave comments, you need to log in
What is the reason for conflict of 2 widgets in Yii?
Good afternoon!
Such a problem, on all actions - oh, in my layouts / column2.php in the first column there is a button, by clicking on which, a jquery ui dialog opens with a form. In the contact action of the site controller , I have another form - a contact one, and it is in this action that the dialog form is not hidden by default, but open and not wrapped in :
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable" tabindex="-1" role="dialog" aria-labelledby="ui-id-1" style="display: none; outline: 0px; z-index: 1000;">
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
)); ?>
$this->endWidget();
Answer the question
In order to leave comments, you need to log in
For some reason, the white screen doesn't die without a hard redirect in actionQuick to the controller's action . For example(' product/all '). Strange property - $current_url , as if it is empty, how to check?
Even if I send a message and get into " product/all " , then the most unpleasant sore occurs - a form with fields is displayed on the screen on the main page, and below is a message about successful submission. After refreshing the page, the form disappears. I would kill this form using jquery , but I have a button "Request price list" on the current page and when clicked, the dialog should open.
If it makes things clear, I use a theme in the user part, in the admin part I use a module ( sadmin ). It's strange, in the admin module, when you click on the cross, the modal window closes humanly, but in the user module, I had to do a trick using jquery, clinging to the id-shnik "mydialog" when the button was clicked
$('.get_price').click(function(){
$('#mydialog').siblings().children('a').attr('id', 'exit_go');
$('#mydialog').siblings().children('a').children('span').attr('id', 'close_pooom');
$('#close_pooom, #exit_go').click(function(){
$('.ui-widget-overlay, .ui-dialog').css({'display':'none'});
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question