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
exercise.ActivityListView = Backbone.View.extend({ | |
tagName: 'ul', | |
id: 'activities-list', | |
attributes: {"data-role": 'listview'}, | |
initialize: function() { | |
this.collection.bind('add', this.render, this); | |
this.template = _.template($('#activity-list-item-template').html()); | |
}, | |
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
exercise.ActivityListView = Backbone.View.extend({ | |
tagName: 'ul', | |
id: 'activities-list', | |
attributes: {"data-role": 'listview'}, | |
initialize: function() { | |
this.collection.bind('add', this.add, this); | |
this.template = _.template($('#activity-list-item-template').html()); | |
}, | |
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
exercise.Activities = Backbone.Collection.extend({ | |
model: exercise.Activity, | |
url: "exercise.json", | |
comparator: function(activity){ | |
var date = new Date(activity.get('date')); | |
return date.getTime(); | |
} | |
}); |
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
# | |
# THE HTML | |
# | |
<div class="modal in" id="myStorybooksModal"> | |
<div class="modal-header"> | |
<h3 id="modal-title"> | |
Create or Open App... | |
</h3> | |
</div> | |
<div class="modal-body" id="storybooks"> |
NewerOlder