Needs work
Project:
SaveGuard
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2015 at 08:28 UTC
Updated:
4 Aug 2016 at 12:26 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
geek-merlinComment #2
geek-merlinPatch flying in.
Comment #3
anybodyThank you axel.rutz, I currently don't have the possibility to write a new patch but had a short look at yours.
behaviours seem correct but I think the context has to be added to the jQuery selected to prevent multiple event registration:
$('input, select').change( ...
should be
$('input, select', context).change( ...
for all events to only register on the currently given context in all (and especially AJAX) conditions! :)
Comment #4
geek-merlinthanks!
for the record: https://stackoverflow.com/questions/16422478/what-is-context-in-jquery-s...