aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/modals_js.mako
diff options
context:
space:
mode:
Diffstat (limited to 'jm2l/templates/modals_js.mako')
-rw-r--r--jm2l/templates/modals_js.mako11
1 files changed, 11 insertions, 0 deletions
diff --git a/jm2l/templates/modals_js.mako b/jm2l/templates/modals_js.mako
index 6afb826..9e1395d 100644
--- a/jm2l/templates/modals_js.mako
+++ b/jm2l/templates/modals_js.mako
@@ -63,4 +63,15 @@ $.ajax({
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