Created
January 6, 2012 23:06
-
-
Save jmarnold/1572865 to your computer and use it in GitHub Desktop.
correlation policy for dialogs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
} | |
} | |
}; |
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
Guess what we already do?