Guest User

Untitled

a guest
Jun 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. jQuery(function ($) {
  2.  
  3. var src = "index.php?route=common/wizard&token=cfcd208495d565ef66e7dff9f98764da";
  4. $.modal('<iframe src="' + src + '" height="480" width="700" scrolling="no" frameborder="0">', {
  5. closeHTML:"<a href='#' title='Close' class='modal-close'>&nbsp;</a>",
  6. containerCss:{
  7. backgroundColor:"#fff",
  8. borderColor:"#fff",
  9.  
  10. height:500,
  11. padding:0,
  12. width:700
  13. },
  14. opacity:40,
  15. overlayCss: {backgroundColor:"#333"},
  16. onClose: function (dialog) {
  17. params = {
  18. top : $('#dashboard').offset().top + 'px',
  19. left : $('#dashboard').offset().left + 'px',
  20. opacity : 0.0,
  21. width : dialog.container.width(),
  22. heigth : dialog.container.height()
  23. };
  24. dialog.container.animate(params, 'slow', false, function () {
  25. dialog.container.hide('normal', function () {
  26. dialog.overlay.slideUp('slow', function () {
  27. $.modal.close();
  28. });
  29. });
  30. }).animate({width:0,height:0},{ queue: false, duration: 700 } );
  31. },
  32. onOpen: function (dialog) {
  33. dialog.overlay.fadeIn('normal', function () {
  34. dialog.container.slideDown('slow', function () {
  35. dialog.data.fadeIn('slow');
  36. });
  37. });
  38. }
  39. });
  40. });
Add Comment
Please, Sign In to add comment