Le repo des sources pour le site web des JM2L
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

78 satır
3.1 KiB

  1. % if modtype=='Place':
  2. $('#AjaxPlaceModal').modal("hide");
  3. % else:
  4. $('#AjaxModal').modal("hide");
  5. ##$('#AjaxModal').data('modal', null);
  6. % endif
  7. % if modtype in ['AskC', 'PropC', 'ShowC']:
  8. $.ajax({
  9. url:'/${CurrentYear}/exchange/AskC/0/refresh',
  10. success:function(result, status, jqXHR){
  11. var pubresult = $('<div />').append(result).find('#MissingCTable').html();
  12. $('#MissingCTable').html(pubresult);
  13. var Askresult = $('<div />').append(result).find('#AskCTable').html();
  14. $('#AskCTable').html(Askresult);
  15. var Propresult = $('<div />').append(result).find('#PropCTable').html();
  16. $('#PropCTable').html(Propresult);
  17. var mycountresult = $('<div />').append(result).find('#MyCounters').html();
  18. $('#MyCounters').html(mycountresult);
  19. var allcountresult = $('<div />').append(result).find('#AllCounters').html();
  20. $('#AllCounters').html(allcountresult);
  21. },
  22. error:function(result, error){
  23. alert(error);
  24. },
  25. });
  26. % elif modtype in ['AskM', 'PropM', 'ShowM']:
  27. $.ajax({
  28. url:'/${CurrentYear}/exchange/AskM/0/refresh',
  29. success:function(result, status, jqXHR){
  30. var pubresult = $('<div />').append(result).find('#MissingMTable').html();
  31. $('#MissingCTable').html(pubresult);
  32. var Askresult = $('<div />').append(result).find('#AskMTable').html();
  33. $('#AskMTable').html(Askresult);
  34. var Propresult = $('<div />').append(result).find('#PropMTable').html();
  35. $('#PropMTable').html(Propresult);
  36. var mycountresult = $('<div />').append(result).find('#MyCounters').html();
  37. $('#MyCounters').html(mycountresult);
  38. var allcountresult = $('<div />').append(result).find('#AllCounters').html();
  39. $('#AllCounters').html(allcountresult);
  40. },
  41. error:function(result, error){
  42. alert(error);
  43. },
  44. });
  45. % elif modtype in ['AskH', 'PropH', 'ShowH']:
  46. $.ajax({
  47. url:'/${CurrentYear}/exchange/AskH/0/refresh',
  48. success:function(result, status, jqXHR){
  49. var pubresult = $('<div />').append(result).find('#MissingHTable').html();
  50. $('#MissingHTable').html(pubresult);
  51. var Askresult = $('<div />').append(result).find('#AskHTable').html();
  52. $('#AskHTable').html(Askresult);
  53. var Propresult = $('<div />').append(result).find('#PropHTable').html();
  54. $('#PropHTable').html(Propresult);
  55. var mycountresult = $('<div />').append(result).find('#MyCounters').html();
  56. $('#MyCounters').html(mycountresult);
  57. var allcountresult = $('<div />').append(result).find('#AllCounters').html();
  58. $('#AllCounters').html(allcountresult);
  59. },
  60. error:function(result, error){
  61. alert(error);
  62. },
  63. });
  64. % elif modtype=='UserPicture':
  65. $.ajax({
  66. url:'/user_picture',
  67. success:function(result, status, jqXHR){
  68. var pictureresult = $('<div />').append(result).find('#MyPictureCarousel').html();
  69. $('#MyPictureCarousel').html(pictureresult);
  70. },
  71. error:function(result, error){
  72. alert(error);
  73. },
  74. });
  75. % endif