Skip to content

Commit

Permalink
support for key
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjara committed Jan 31, 2017
1 parent 3a38506 commit 63517cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions web-screenshots/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,18 @@ Ext.onReady(function(){
title: 'Web screenshot netdb.io (0 items selected)',
items: Ext.create('Ext.view.View', {
store: store,
tpl: [
tpl: new Ext.XTemplate(
'<tpl for=".">',
'<div class="thumb-wrap" id="{product:stripTags}">',
'<div class="thumb"><img src="http://api.screenshotmachine.com/?key='+window.key+'&size=t&url=http://{ip}" title="{product:htmlEncode}"></div>',
'<div class="thumb"><img src="http://api.screenshotmachine.com/?key={[this.getKey()]}&size=t&url=http://{ip}" title="{product:htmlEncode}"></div>',
'<span class="x-editable">{ip:htmlEncode} - {product:htmlEncode}</span>',
'</div>',
'</tpl>',
'<div class="x-clear"></div>'
],
'<div class="x-clear"></div>', {
getKey: function(){
return window.key;
}
}),
multiSelect: true,
trackOver: true,
overItemCls: 'x-item-over',
Expand Down

0 comments on commit 63517cd

Please sign in to comment.