diff --git a/src/editor/ImageViewer.js b/src/editor/ImageViewer.js index 23d5647433..8412858b79 100644 --- a/src/editor/ImageViewer.js +++ b/src/editor/ImageViewer.js @@ -67,7 +67,7 @@ define(function (require, exports, module) { this._scale = 100; // 100% this._scaleDivInfo = null; // coordinates of hidden scale sticker - this.relPath = ProjectManager.makeProjectRelativeIfPossible(this.file.fullPath); + this.relPath = ProjectManager.getProjectRelativeOrDisplayPath(this.file.fullPath); this.$imagePath = this.$el.find(".image-path"); this.$imagePreview = this.$el.find(".image-preview"); @@ -108,7 +108,7 @@ define(function (require, exports, module) { * so we just need to see if the file has the same path as our image */ if (this.file.fullPath === newPath) { - this.relPath = ProjectManager.makeProjectRelativeIfPossible(newPath); + this.relPath = ProjectManager.getProjectRelativeOrDisplayPath(newPath); this.$imagePath.text(this.relPath).attr("title", this.relPath); } }; diff --git a/src/editor/MediaViewer.js b/src/editor/MediaViewer.js index 75f92a7852..cc97ce74d2 100644 --- a/src/editor/MediaViewer.js +++ b/src/editor/MediaViewer.js @@ -117,7 +117,7 @@ define(function (require, exports, module) { this._naturalWidth = 0; this._naturalHeight = 0; - this.relPath = ProjectManager.makeProjectRelativeIfPossible(this.file.fullPath); + this.relPath = ProjectManager.getProjectRelativeOrDisplayPath(this.file.fullPath); this.$mediaPath = this.$el.find(".media-path"); this.$mediaPreview = this.$el.find(".media-preview"); @@ -175,7 +175,7 @@ define(function (require, exports, module) { */ MediaView.prototype._onFilenameChange = function (e, oldPath, newPath) { if (this.file.fullPath === newPath) { - this.relPath = ProjectManager.makeProjectRelativeIfPossible(newPath); + this.relPath = ProjectManager.getProjectRelativeOrDisplayPath(newPath); this.$mediaPath.text(this.relPath).attr("title", this.relPath); } };