Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created January 6, 2012 23:06
Show Gist options
  • Select an option

  • Save jmarnold/1572865 to your computer and use it in GitHub Desktop.

Select an option

Save jmarnold/1572865 to your computer and use it in GitHub Desktop.
correlation policy for dialogs
var correlationPolicy = {
matches: function (continuation) {
return continuation.correlationId != null && continuation.correlationId != '';
},
execute: function (continuation) {
if (continuation.errors && continuation.errors.length != 0) {
return;
}
var dialog = $('#' + continuation.correlationId).parents('.dialog');
if (dialog.size() != 0) {
dialog.dialog('close');
}
}
};
@rauhryan
Copy link
Copy Markdown

rauhryan commented Jan 6, 2012

should have know,

its good stuff it fits in really nicely with how blue works too

i'll have some feedback and contributions when finish supa picka

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