Skip to content

Instantly share code, notes, and snippets.

@sumitngupta
Created August 25, 2011 18:37
Show Gist options
  • Save sumitngupta/1171412 to your computer and use it in GitHub Desktop.
Save sumitngupta/1171412 to your computer and use it in GitHub Desktop.
index: function() {
var brands = window.Pipeline.collections.brands;
brands.fetch({
success: function () {
var brandsView = new window.Pipeline.Views.Brands({ collection: window.Pipeline.collections.brands });
$('#panel-container').empty().append(brandsView.render().el);
},
error: function () {
displayNotification('Error fetching Brands.', 'error');
}
});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment