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:
parent
2368d471e8
commit
d7c5d6014b
56
frontend/delta/js/Clipperz/PM/UI/Components/Cards/FavIcon.js
Normal file
56
frontend/delta/js/Clipperz/PM/UI/Components/Cards/FavIcon.js
Normal file
File diff suppressed because one or more lines are too long
@ -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')
|
||||
]);
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user