Skip to content

Instantly share code, notes, and snippets.

@mikaelo
Forked from thecodejunkie/gist:4564425
Created February 19, 2013 10:01
Show Gist options
  • Save mikaelo/4984558 to your computer and use it in GitHub Desktop.
Save mikaelo/4984558 to your computer and use it in GitHub Desktop.
ko.bindingHandlers.modal = {
update: function (element, valueAccessor) {
$(element).click(function () {
$.fancybox({ content: $('<div/>').addClass('list-widget').html($('.content', $(element).parent()).html()) });
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment