aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-07 16:51:12 -0700
committerValerio Virgillito2012-06-07 16:51:12 -0700
commita67e6e8783dcdfd3a3bbcff36dc086dded6c7656 (patch)
treeb83651847aa578cdd3ed023e9e8bfee131118f0d /js/document/views
parent2e331fc1daba0f6f29191a36cf7647f6f5dc36ee (diff)
parent25fa6978470c296bd40321d5aa3046d34062ecd8 (diff)
downloadninja-a67e6e8783dcdfd3a3bbcff36dc086dded6c7656.tar.gz
Merge pull request #281 from joseeight/FileIO
Adding partial unique ID to data files
Diffstat (limited to 'js/document/views')
-rwxr-xr-xjs/document/views/design.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index 3d11e138..1a5b071e 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -204,7 +204,19 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
204 this.document.body.setAttribute(this.content.document.body.attributes[n].name, this.content.document.body.attributes[n].value); 204 this.document.body.setAttribute(this.content.document.body.attributes[n].name, this.content.document.body.attributes[n].value);
205 } 205 }
206 } 206 }
207 //TODO: Add attribute copying for <HEAD> and <HTML> 207 //Copying attributes to maintain same properties as the <head>
208 for (var m in this.content.document.head.attributes) {
209 if (this.content.document.head.attributes[m].value) {
210 this.document.head.setAttribute(this.content.document.head.attributes[m].name, this.content.document.head.attributes[m].value);
211 }
212 }
213 //Copying attributes to maintain same properties as the <html>
214 var htmlTagMem = this.content.document.getElementsByTagName('html')[0], htmlTagDoc = this.document.getElementsByTagName('html')[0];
215 for (var m in htmlTagMem.attributes) {
216 if (htmlTagMem.attributes[m].value) {
217 htmlTagDoc.setAttribute(htmlTagMem.attributes[m].name, htmlTagMem.attributes[m].value);
218 }
219 }
208 } 220 }
209 } 221 }
210 }, 222 },