Skip to content

Instantly share code, notes, and snippets.

@bsatrom
Created June 10, 2011 17:56
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 bsatrom/1019366 to your computer and use it in GitHub Desktop.
Save bsatrom/1019366 to your computer and use it in GitHub Desktop.
$.getJSON('Gallery/List', function (data) {
var itemList = [];
$.each(data, function (key, val) {
var item = {
'name': data[key].name,
'url': 'Gallery/View/' + data[key].id,
'icon': '/Content/Images/icon-gallery.ico'
};
itemList.push(item);
});
$.pinify.addJumpList({
title: 'Photo Galleries',
items: itemList
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment