alchemy-media 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/helper/media_helper.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/helper/media_helper.js
CHANGED
|
@@ -248,7 +248,7 @@ Media.setMethod(function fileAnchor(file_id, options) {
|
|
|
248
248
|
*
|
|
249
249
|
* @author Jelle De Loecker <jelle@develry.be>
|
|
250
250
|
* @since 0.2.0
|
|
251
|
-
* @version 0.7.
|
|
251
|
+
* @version 0.7.6
|
|
252
252
|
*
|
|
253
253
|
* @param {String} image_id
|
|
254
254
|
*
|
|
@@ -273,7 +273,7 @@ Media.setMethod(function imageUrl(image_id, options) {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
url = this.parseURL(this.view.helpers.Router.routeUrl(routeName, {id: image_id}));
|
|
276
|
-
} else if (typeof image_id == 'string' && image_id.indexOf('http') === 0) {
|
|
276
|
+
} else if (typeof image_id == 'string' && (image_id.indexOf('http') === 0 || image_id[0] == '/')) {
|
|
277
277
|
url = this.parseURL(image_id);
|
|
278
278
|
} else if (image_id) {
|
|
279
279
|
url = this.parseURL('/media/static/' + image_id);
|