Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'> </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');
- });
- });
- }
- });
- });
Add Comment
Please, Sign In to add comment