ming пре 3 година
родитељ
комит
8e43dc2335
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      api/static/script_msg.js

+ 1 - 1
api/static/script_msg.js

@@ -44,7 +44,7 @@ function openavatarModel() {
   avatarModal.show();
 }
 
-$('input[type=file]').on('change', prepareUpload);
+$('.img_uploader').on('change', prepareUpload);
 
 // Grab the files and set them to our variable
 function prepareUpload(event) {