postcommit event

Previous Next

You can use the postcommit event to execute behavior that depends on whether a commit was successful or not.

Example

$.udb.on("postcommit", function(evt, options) {

  if (options.success)

    alert("Commit succeeded.");

  else 

    alert("Commit failed.");

});

 

 

See Also

Top-level Events