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