Skip to content

Commit

Permalink
Seems to work perfectly now
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnautDaniel committed Mar 1, 2017
1 parent 2ee552c commit 4964253
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/plugins/custom/ajax-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ if ($("#image-name").attr("value") == null) {
$("#input-picture").replaceWith("<p> All out of pictures </p>"); }
else {
$("#input-picture").replaceWith("<img id='input-picture' src='" + $("#image-name").attr("value") + "' class='img-responsive' width='40%' height='40%' name='" + $("#image-name").attr("value") + "' />");
$("#input-picture").fadeOut(0);
$("#input-picture").fadeIn("slow");
$('#modalImg').find('form').first().remove();}
},
error: function() {
Expand Down

0 comments on commit 4964253

Please sign in to comment.