Skip to content

Instantly share code, notes, and snippets.

@professorplumb
Created June 13, 2014 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save professorplumb/9726bd7d3af9ca33a44f to your computer and use it in GitHub Desktop.
Save professorplumb/9726bd7d3af9ca33a44f to your computer and use it in GitHub Desktop.
var showRebookDialog = function () {
var $conversation = $(this).closest('.conversation');
var providerUrl = $conversation.attr('data-provider-url');
var requesterUrl = $conversation.attr('data-requester-url');
$.getJSON(providerUrl, function (provider) {
$.getJSON(requesterUrl, function (requester) {
var view = new RebookDialogView({
el: '.js-rebook-dialog-container',
sender: provider,
receiver: requester,
provider: provider,
requester: requester,
service_url: $conversation.attr('data-service-url')
})
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment