Skip to content

Instantly share code, notes, and snippets.

@stevenpsmith
Created January 23, 2012 18:16
Show Gist options
  • Save stevenpsmith/1664625 to your computer and use it in GitHub Desktop.
Save stevenpsmith/1664625 to your computer and use it in GitHub Desktop.
$('#activity-details').live('pagebeforeshow', function(){
var activitiesDetailsContainer = $('#activity-details').find(":jqmData(role='content')"),
activityDetailsView,
activityId = $('#activity-details').jqmData('activityId'),
activityModel = exercise.activities.get(activityId);
activityDetailsView = new exercise.ActivityDetailsView({model: activityModel, viewContainer: activitiesDetailsContainer});
activityDetailsView.render();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment