You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var rescan = function() {
var $form = $(this);
var fields = $form.find(settings.fieldSelector);
$(fields).each(function() {
var $field = $(this);
if (!$field.data('ays-orig')) {
storeOrigValue($field);
$field.bind(settings.fieldEvents, checkForm);
}
});
// Check for changes while we're here
$form.trigger('checkform.areYouSure');
};
Above is the rescan method. On line 6, the expression returns true if
the field's data attribute (ays-orig) is undefiend, or
the field's value is empty
In reality, fields may be empty when page is loaded for the first time. Running this method will lose the original ays-orig values of those fields.
Is there any reason why empty fields have to update their ays-orig values?
The text was updated successfully, but these errors were encountered:
Above is the
rescan
method. On line 6, the expression returns true ifthe field's data attribute (ays-orig) is undefiend, or
the field's value is empty
In reality, fields may be empty when page is loaded for the first time. Running this method will lose the original ays-orig values of those fields.
Is there any reason why empty fields have to update their ays-orig values?
The text was updated successfully, but these errors were encountered: