Created
June 13, 2014 22:25
-
-
Save professorplumb/9726bd7d3af9ca33a44f to your computer and use it in GitHub Desktop.
This file contains 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 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