Skip to content

Instantly share code, notes, and snippets.

@moeproblems
Created February 1, 2011 22:50
Show Gist options
  • Save moeproblems/806901 to your computer and use it in GitHub Desktop.
Save moeproblems/806901 to your computer and use it in GitHub Desktop.
$.when(Utils.post({ message: text, services: services, media: uploadedImages} ))
.then(function(r) {
Site.resetUploadArea(message_id);
if(services.length == 0)
Utils.triggerGlobalInformer(inform, Uploader.informerDelay);
})
.fail(function(r) {
Utils.triggerGlobalInformer("Well, something went wrong. Embarrassing, isn't it?", 5);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment