From 3ce003c8d99f0043d460b5833c9e5e6bf6a9f0a7 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Tue, 15 May 2012 11:24:05 -0700 Subject: Adding animation sub-category to new file Adding animation sub-category to template in new file. --- js/io/templates/descriptor.json | 17 +++++++++++++---- js/io/templates/files/animation.txt | 18 ++++++++++++++++++ js/mediators/io-mediator.js | 2 +- 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100755 js/io/templates/files/animation.txt (limited to 'js') diff --git a/js/io/templates/descriptor.json b/js/io/templates/descriptor.json index 0b2b70e5..9c9c4ac8 100644 --- a/js/io/templates/descriptor.json +++ b/js/io/templates/descriptor.json @@ -13,7 +13,7 @@ "name":"Template", "uri":"/template", "type":"directory", - "children":["js/io/templates/files/banner.txt"] + "children":["js/io/templates/files/banner.txt", "js/io/templates/files/animation.txt"] }, "js/io/templates/files/html.txt":{ @@ -90,7 +90,7 @@ "uri":"js/io/templates/files/banner.txt", "type":"file", "fileExtension":".html", - "children":["120x600", "160x600", "200x200", "250x250", "300x250", "336x280", "550x400"] + "children":["120x600", "160x600", "200x200", "250x250", "300x250", "336x280"] }, "120x600":{ @@ -123,8 +123,17 @@ "uri": "336x280", "type":"file" }, - "550x400":{ - "name": "Animation Default", + + "js/io/templates/files/animation.txt":{ + "name":"Animation", + "uri":"js/io/templates/files/animation.txt", + "type":"file", + "fileExtension":".html", + "children":["550x400"] + }, + + "550x400":{ + "name": "Default", "uri": "550x400", "type":"file" } diff --git a/js/io/templates/files/animation.txt b/js/io/templates/files/animation.txt new file mode 100755 index 00000000..33b45e53 --- /dev/null +++ b/js/io/templates/files/animation.txt @@ -0,0 +1,18 @@ + + +
+ + + + + +
+ + + +
+ +
\ No newline at end of file diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js index 7a905fc6..696a69dc 100644 --- a/js/mediators/io-mediator.js +++ b/js/mediators/io-mediator.js @@ -77,7 +77,7 @@ exports.IoMediator = Montage.create(Component, { //TODO: Improve template data injection function parseTemplate (content, template) { // - if (template.name.toLowerCase() === 'banner') { + if (template.name.toLowerCase() === 'banner' || template.name.toLowerCase() === 'animation') { //Getting dimensions of banner var dimensions = template.id.split('x'); dimensions = {width: String(dimensions[0])+'px', height: String(dimensions[1])+'px'}; -- cgit v1.2.3