Permalink
Browse files

When attaching a timestamp to a image url, check for query parameters…

… and choose '&' or '?' as delimiter appropriately.
  • Loading branch information...
1 parent 05a9f5f commit 280d8292945f523995f110d38f914e08a4b41c6d Nils Knappmeier committed Nov 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/galleria.js
View
@@ -6164,7 +6164,7 @@ Galleria.Picture.prototype = {
// reload the image with a timestamp
window.setTimeout((function(image, src) {
return function() {
- image.attr('src', src + '?' + Utils.timestamp() );
+ image.attr('src', src + (src.indexOf('?') > -1 ? '&' : '?') + Utils.timestamp() );
};
}( $(this), src )), 50);
} else {

0 comments on commit 280d829

Please sign in to comment.