fixed replacement functions to catch all instances of parenthesis
Signed-off-by: imsolost <imsolost@gmail.com>
This commit is contained in:
parent
67c304498e
commit
3e37620cc2
1 changed files with 2 additions and 3 deletions
|
@ -1674,7 +1674,7 @@
|
|||
c: fileData.etag
|
||||
};
|
||||
var previewUrl = this.generatePreviewUrl(urlSpec);
|
||||
previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
|
||||
previewUrl = previewUrl.replace(/\(/g, '%28').replace(/\)/g, '%29');
|
||||
iconDiv.css('background-image', 'url("' + previewUrl + '")');
|
||||
}
|
||||
}
|
||||
|
@ -2058,8 +2058,7 @@
|
|||
}
|
||||
|
||||
previewURL = self.generatePreviewUrl(urlSpec);
|
||||
previewURL = previewURL.replace('(', '%28');
|
||||
previewURL = previewURL.replace(')', '%29');
|
||||
previewUrl = previewUrl.replace(/\(/g, '%28').replace(/\)/g, '%29');
|
||||
|
||||
// preload image to prevent delay
|
||||
// this will make the browser cache the image
|
||||
|
|
Loading…
Reference in a new issue