Skip to content

Add option to check if whole object is changed in form autosave #18

Description

@ptanov

#10

add option
var previous = $parse(attrs.seFormAutoSubmitModel)(scope);
SeEventHelperService.whenChanged(scope, attrs.seFormAutoSubmitModel, function(newValue, oldValue) {
if (previous !== newValue) {
// if the whole object is changed - this is not made by user input, but by something else - do not update on server
previous = newValue;
return;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions