Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveForm + Gridview = ajax call called twice #7231

Closed
dynasource opened this issue Feb 11, 2015 · 8 comments
Closed

ActiveForm + Gridview = ajax call called twice #7231

dynasource opened this issue Feb 11, 2015 · 8 comments
Labels

Comments

@dynasource
Copy link
Member

I dont know if this is intended behavior, but when I include a Gridview inside an activeform, and I click on a delete button with a confirm, I have to confirm twice. The javascript log says that yii.activeForm.js is catching the AJAX event and starting some setTimeout event. If the gridview is outside of the Form, the normal behavior is occurring.

@dynasource
Copy link
Member Author

the following is a fix, but leaving me without the JS functions
'enableClientScript'=>false

@samdark samdark added type:bug Bug status:to be verified Needs to be reproduced and validated. labels Feb 11, 2015
@dynasource
Copy link
Member Author

same behavior I get when attaching an event to a form:
$( "#create-member" ).submit(function( e ) {
alert(); //fired twice
});

@Faryshta
Copy link
Contributor

I guess one is the ajax validation, the other is the actual submit

@papa-stiflera
Copy link

I have the same problem

@xskif
Copy link
Contributor

xskif commented Feb 25, 2015

Confirmed. Same issue.

@samdark samdark removed the status:to be verified Needs to be reproduced and validated. label Feb 25, 2015
@samdark samdark added this to the 2.0.x milestone Feb 25, 2015
@abassanini
Copy link

Same here, using DetailView and/or GridView

@xskif
Copy link
Contributor

xskif commented Mar 26, 2015

Disabling client validation solves the issue

@dynasource
Copy link
Member Author

dynasource commented Oct 13, 2016

multiple topics about this.

@cebe cebe removed this from the 2.0.x milestone Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants