Releases: Troopers/AjaxBundle
Releases · Troopers/AjaxBundle
Fix Firefox double redirection
fix firefox double reload :'( (#40) * fix firefox double reload :'( * Update ajax.js
Allow to overwrite the loader (and its overlay)
Merge pull request #37 from Troopers/loader-overwrite Allow to overwrite the loader
fix double redirect on firefox
Merge pull request #35 from BFoucher/fix/double-reload-firefox fix double redirect on firefox
rollback unworking syntax for ajax handling
Merge pull request #34 from LoicGoyet/fix/scroll-position-rollback roll back to previous method to keep scroll position but with a state…
crossbrowser ajax event handling
Merge pull request #33 from LoicGoyet/master change the way to write on events ajaxStart and ajaxSuccess...
#Feature Auto-refresh a form
Auto-refresh a form
You can automatically send an ajax request to update your form when an input/select change, just add the data attribute "data-refreshonchange":
<select name="category" data-refreshonchange="true">
<option value="transport">Transport</option>
<option value="structure">Stucture</option>
</select>
Then in your controller's action:
if ($request->query->get('novalidate', false) === false) {
if ($form->isValid()) {
// form is valid
} else {
// avoid to display errors when novalidate
$form = $formFactory->createForm();
$form->setData($user);
}
}
For some reason, you would not refresh some parts of your form (for example an input type="file"). Then, add the data attribute 'data-ignoreonchange="$some_unique_id"'.
fix image path
v1.2.3 Update ajax.js
move to troopers org
v1.2.2 Move to Troopers organization (#23)
Allow hinclude to load ajax forms
v1.2.1 Disable pointer-events restriction for hinclude
v1.2.0
Merge pull request #18 from AppVentus/analysis-qvD5O8 Applied fixes from StyleCI