% if modtype=='Place': $('#AjaxPlaceModal').modal("hide"); % else: $('#AjaxModal').modal("hide"); ##$('#AjaxModal').data('modal', null); % endif % if modtype in ['AskC', 'PropC', 'ShowC']: $.ajax({ url:'/${CurrentYear}/exchange/AskC/0/refresh', success:function(result, status, jqXHR){ var pubresult = $('
').append(result).find('#MissingCTable').html(); $('#MissingCTable').html(pubresult); var Askresult = $('').append(result).find('#AskCTable').html(); $('#AskCTable').html(Askresult); var Propresult = $('').append(result).find('#PropCTable').html(); $('#PropCTable').html(Propresult); var mycountresult = $('').append(result).find('#MyCounters').html(); $('#MyCounters').html(mycountresult); var allcountresult = $('').append(result).find('#AllCounters').html(); $('#AllCounters').html(allcountresult); }, error:function(result, error){ alert(error); }, }); % elif modtype in ['AskM', 'PropM', 'ShowM']: $.ajax({ url:'/${CurrentYear}/exchange/AskM/0/refresh', success:function(result, status, jqXHR){ var pubresult = $('').append(result).find('#MissingMTable').html(); $('#MissingCTable').html(pubresult); var Askresult = $('').append(result).find('#AskMTable').html(); $('#AskMTable').html(Askresult); var Propresult = $('').append(result).find('#PropMTable').html(); $('#PropMTable').html(Propresult); var mycountresult = $('').append(result).find('#MyCounters').html(); $('#MyCounters').html(mycountresult); var allcountresult = $('').append(result).find('#AllCounters').html(); $('#AllCounters').html(allcountresult); }, error:function(result, error){ alert(error); }, }); % elif modtype in ['AskH', 'PropH', 'ShowH']: $.ajax({ url:'/${CurrentYear}/exchange/AskH/0/refresh', success:function(result, status, jqXHR){ var pubresult = $('').append(result).find('#MissingHTable').html(); $('#MissingHTable').html(pubresult); var Askresult = $('').append(result).find('#AskHTable').html(); $('#AskHTable').html(Askresult); var Propresult = $('').append(result).find('#PropHTable').html(); $('#PropHTable').html(Propresult); var mycountresult = $('').append(result).find('#MyCounters').html(); $('#MyCounters').html(mycountresult); var allcountresult = $('').append(result).find('#AllCounters').html(); $('#AllCounters').html(allcountresult); }, error:function(result, error){ alert(error); }, }); % elif modtype=='UserPicture': $.ajax({ url:'/user_picture', success:function(result, status, jqXHR){ var pictureresult = $('').append(result).find('#MyPictureCarousel').html(); $('#MyPictureCarousel').html(pictureresult); }, error:function(result, error){ alert(error); }, }); % endif