Guest User

Untitled

a guest
Jul 11th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. $('#member_ban_forum').ajaxForm( {
  2. data: { member: member },
  3. beforeSubmit: function() {
  4. $.modal.close();
  5. },
  6. success: function (responseText) {
  7. $().delay(5000, function () {
  8. simpleModal(responseText);
  9. });
  10. }
  11. });
  12.  
  13. function simpleModal ( html )
  14. {
  15. $(html).modal({
  16. containerCss:{
  17. height:340,
  18. width:450
  19. },
  20. onOpen: function (dialog) {
  21. dialog.overlay.fadeIn(350, function () {
  22. dialog.container.fadeIn(350, function () {
  23. dialog.data.slideDown(350);
  24. });
  25. });
  26. },
  27. onClose: function (dialog) {
  28. dialog.data.slideUp(350, function () {
  29. dialog.container.fadeOut(350, function () {
  30. dialog.overlay.fadeOut(350, function () {
  31. $.modal.close();
  32. });
  33. });
  34. });
  35. }
  36. });
  37. }
  38.  
  39. $('#member_ban_forum').ajaxForm( {
  40. data: { member: member },
  41. beforeSubmit: function() {
  42. $.modal.close();
  43. },
  44. success: function (responseText) {
  45. setTimeout(function () {
  46. simpleModal(responseText);
  47. }, 5000);
  48. }
  49. });
Add Comment
Please, Sign In to add comment