1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-13 09:39:03 +01:00

Added default image when actual favicon fails to load

This commit is contained in:
Giulio Cesare Solaroli 2015-03-03 19:30:44 +01:00
parent 2368d471e8
commit d7c5d6014b
3 changed files with 60 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -50,7 +50,8 @@ Clipperz.PM.UI.Components.Cards.List = React.createClass({
};
result = React.DOM.li({'className':React.addons.classSet(classes), 'onClick': this.handleClick, 'key':anItem['_reference'], 'data-reference':anItem['_reference'], 'data-label':anItem['label']}, [
React.DOM.span({'className':'favicon'}, [ React.DOM.img({src:anItem['favicon']})]),
// React.DOM.span({'className':'favicon'}, React.DOM.img({'onLoad':this.faviconEvent, 'onError':this.faviconEvent, 'onAbort':this.faviconEvent, 'src':anItem['favicon']})),
React.DOM.span({'className':'favicon'}, Clipperz.PM.UI.Components.Cards.FavIcon({'src':anItem['favicon']})),
React.DOM.span({'className':'label'}, anItem['label']),
// React.DOM.span({'className':'action'}, 'show detail')
]);

View File

@ -68,7 +68,7 @@ Clipperz.PM.UI.Components.Cards.TextArea = React.createClass({
node.style.height = node.scrollHeight+'px';
window.scrollTo(window.scrollLeft, (node.scrollTop + node.scrollHeight));
},
/*
recalculateSize_2: function() {
var diff;
var node = this.getDOMNode();
@ -96,7 +96,7 @@ Clipperz.PM.UI.Components.Cards.TextArea = React.createClass({
node.style.height = 'auto';
node.style.height = (node.scrollHeight - diff) + 'px';
},
*/
//----------------------------------------------------------------------------
// render: function () {