Skip to content

Instantly share code, notes, and snippets.

@wesen
Created September 10, 2011 14:29
Show Gist options
  • Select an option

  • Save wesen/1208364 to your computer and use it in GitHub Desktop.

Select an option

Save wesen/1208364 to your computer and use it in GitHub Desktop.
$("a.select-user")
.fancybox(
{type: 'deferred',
promise:
function () {
that.view = new App.Views.Admin.Popups.selectUserView({el: $("#fancybox-content"),
order: that.order,
member: that.order.member});
return that.view.renderTemplate();
},
width: 'auto',
height: 'auto',
autoDimensions: true,
onComplete: function () {
that.view.delegateEvents();
$("#fancybox-content").css({width: "auto",
height: "auto"});
$.fancybox.resize();
$.fancybox.center();
},
onCleanup: function () {
that.view.destroy();
delete that.view; }});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment