Skip to content
Browse files

use transloadit for backgroudn image

  • Loading branch information...
1 parent 5f03873 commit f23a25c2afe5e28903639a98a354d464f15eb9bc @steren steren committed Jul 17, 2012
Showing with 9 additions and 5 deletions.
  1. +1 −1 app/sleek.js
  2. +8 −4 package.json
View
2 app/sleek.js
@@ -94,7 +94,7 @@ function(Collection, DynamicContainer, Item, List, CardPanel, SlidePanel, Factor
this.title = Joshfire.factory.config.app.name;
this.tabs = Joshfire.factory.config.template.options.tabs || [];
this.tabicons = Joshfire.factory.config.template.options.tabicons || [];
- this.backgroundURL = Joshfire.factory.config.template.options.backgroundurl;
+ this.backgroundURL = Joshfire.factory.config.template.options.backgroundimage ? Joshfire.factory.config.template.options.backgroundimage.url : Joshfire.factory.config.template.options.backgroundurl;
this.logoURL = Joshfire.factory.config.app.logo ?
Joshfire.factory.config.app.logo.contentURL : null;
View
12 package.json
@@ -75,9 +75,9 @@
"default":"gray",
"required": true
},
- "backgroundurl": {
- "title": "Background URL (for TV version)",
- "type": "string"
+ "backgroundimage" : {
+ "title": "Background image for TV version",
+ "type": "object"
},
"tabs": {
"title": "Tabs titles",
@@ -114,7 +114,11 @@
"legend": "Styles",
"items": [
"color",
- "backgroundurl"
+ {
+ "key" : "backgroundimage",
+ "type": "file-transloadit"
+ }
+
]
},
{

0 comments on commit f23a25c

Please sign in to comment.
Something went wrong with that request. Please try again.