aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-07 19:22:05 -0800
committerJose Antonio Marquez2012-03-07 19:22:05 -0800
commitd9813946dc28d8c28033a68b68300b9d9eda115c (patch)
tree63617bf47ad77ad26b5cd56c720ccad4205887a5 /js/document
parent8b0988b6dd2fe7f5977f70f651f7155c78ee872b (diff)
downloadninja-d9813946dc28d8c28033a68b68300b9d9eda115c.tar.gz
Image data fix on Open
Fixed a bug with data-uris not opening correctly.
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index a05219bc..b9b68972 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -451,9 +451,12 @@ exports.HTMLDocument = Montage.create(TextDocument, {
451 // 451 //
452 function ninjaUrlPrepend (url) { 452 function ninjaUrlPrepend (url) {
453 var docRootUrl = this.application.ninja.coreIoApi.rootUrl+escape((this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]).replace(/\/\//gi, '/')); 453 var docRootUrl = this.application.ninja.coreIoApi.rootUrl+escape((this.application.ninja.documentController.documentHackReference.root.split(this.application.ninja.coreIoApi.cloudData.root)[1]).replace(/\/\//gi, '/'));
454 return '"'+docRootUrl+url.replace(/\"/gi, '')+'"'; 454 if (url.indexOf('data:image') !== -1) {
455 return url;
456 } else {
457 return '"'+docRootUrl+url.replace(/\"/gi, '')+'"';
458 }
455 } 459 }
456
457 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 460 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
458 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 461 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
459 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 462 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////