Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
Additional secutiry checks on thumb selection
Browse files Browse the repository at this point in the history
... for a groupeditems view.
  • Loading branch information
arthurjamain committed Jan 18, 2013
1 parent 24e65ca commit a1635f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Binary file added Template/Template.v11.suo
Binary file not shown.
6 changes: 6 additions & 0 deletions Template/Template/Template.jsproj.user
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ReferenceCachePath>C:\Users\Josh\AppData\Local\Temp\Template_refcache</ReferenceCachePath>
</PropertyGroup>
</Project>
8 changes: 6 additions & 2 deletions Template/Template/pages/groupedItems/groupedItems.js
Expand Up @@ -112,9 +112,13 @@
var thethumb = Data.getImageFromGroup(currentItem);

var img = tplSelect.element._value.querySelector('.tilebackground');
img.src = thethumb.contentURL || '/images/' + currentItem.data['@type'] + 'Placeholder.png';
img.style.top = -(thethumb.height - 120);
var src = (thethumb && typeof thethumb !== 'undefined' && thethumb.contentURL) ? thethumb.contentURL : '/images/' + currentItem.data['@type'] + 'Placeholder.png';

img.src = src;
if (thethumb && typeof thethumb !== 'undefined')
img.style.top = -(thethumb.height - 120);
img.width = '100%';

return tplSelect.element;
});
}
Expand Down

0 comments on commit a1635f7

Please sign in to comment.