Skip to content

Commit

Permalink
Added border.png to images
Browse files Browse the repository at this point in the history
  • Loading branch information
ingemaradahl committed Jan 29, 2013
1 parent 0ca9d30 commit be61809
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file added images/border.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/app.js
Expand Up @@ -786,7 +786,7 @@ function Inputs() {

var input = $(templates.inputs.texture.input({ value: value }));
input.autocomplete({
source: Object.keys(config.images).concat(['images/lena.png']),
source: Object.keys(config.images),
select: function(e) { onUpdate(e, true); }
});
var preview = $(templates.inputs.texture.preview());
Expand Down
2 changes: 2 additions & 0 deletions js/config.js
Expand Up @@ -47,5 +47,7 @@ var config = {
, 'images/yellow_train.jpg': { author: "Bart", attribution: "http://www.flickr.com/photos/89246112@N00/8352439289/in/photostream/", description: "Yellow train" }
, 'images/bridge.jpg': { author: "Railways of Australia", attribution: "http://www.flickr.com/photos/railwayofaustralia/8425520163/in/photostream/", description: "Asplin Bridge" }
, 'images/waterfall.jpg': { author: "aksynth", attribution: "http://www.flickr.com/photos/23313207@N00/8426609538/sizes/l/in/photostream/", description: "Waterfall" }
, 'images/border.png': null
, 'images/lena.png': null
}
};
4 changes: 2 additions & 2 deletions js/editor.js
Expand Up @@ -650,8 +650,8 @@ function Editor() {
// Build attribution list
var attribution = about.find("#attribution");
for (var url in config.images) {
attribution.append($(templates.attribution(config.images[url])));

if (config.images[url])
attribution.append($(templates.attribution(config.images[url])));
}

};
Expand Down

0 comments on commit be61809

Please sign in to comment.