Skip to content

Instantly share code, notes, and snippets.

@millken
Created October 16, 2010 03:00
Show Gist options
  • Select an option

  • Save millken/629351 to your computer and use it in GitHub Desktop.

Select an option

Save millken/629351 to your computer and use it in GitHub Desktop.
jQuery(function ($) {
var src = "index.php?route=common/wizard&token=cfcd208495d565ef66e7dff9f98764da";
$.modal('<iframe src="' + src + '" height="480" width="700" scrolling="no" frameborder="0">', {
closeHTML:"<a href='#' title='Close' class='modal-close'>&nbsp;</a>",
containerCss:{
backgroundColor:"#fff",
borderColor:"#fff",
height:500,
padding:0,
width:700
},
opacity:40,
overlayCss: {backgroundColor:"#333"},
onClose: function (dialog) {
params = {
top : $('#dashboard').offset().top + 'px',
left : $('#dashboard').offset().left + 'px',
opacity : 0.0,
width : dialog.container.width(),
heigth : dialog.container.height()
};
dialog.container.animate(params, 'slow', false, function () {
dialog.container.hide('normal', function () {
dialog.overlay.slideUp('slow', function () {
$.modal.close();
});
});
}).animate({width:0,height:0},{ queue: false, duration: 700 } );
},
onOpen: function (dialog) {
dialog.overlay.fadeIn('normal', function () {
dialog.container.slideDown('slow', function () {
dialog.data.fadeIn('slow');
});
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment