Commit 6b1e064d authored by haemmer's avatar haemmer
Browse files

Now image reloading also works in IE

parent af5bc19c
...@@ -332,9 +332,10 @@ function getListElement(sourceElement) { ...@@ -332,9 +332,10 @@ function getListElement(sourceElement) {
.scroll(function() { .scroll(function() {
// Loop through list and check which elements are visible // Loop through list and check which elements are visible
$(this).children('.idd_listItem[logo]').each(function () { $(this).children('.idd_listItem[logo]').each(function () {
if ($(this).visible()){ if ($(this).visible() && $(this).attr("logo")){
// Load logo // Load logo
$(this).children("img").attr("src", $(this).attr("logo")); var imgObj = $(this).children("img:first-child")[0];
imgObj.src = $(this).attr("logo");
} }
}); });
}) })
...@@ -417,7 +418,6 @@ function populateListItem(newListControl, optionItem) { ...@@ -417,7 +418,6 @@ function populateListItem(newListControl, optionItem) {
var logo = ''; var logo = '';
if (displayLogos){ if (displayLogos){
if (optionItem.attr('logo')){ if (optionItem.attr('logo')){
//logo = '<img src="' + optionItem.attr('logo') + '" width="16" height="16" class="idd_listItemLogo" />';
logo = '<img src="' + loadingImage + '" width="16" height="16" class="idd_listItemLogo" />'; logo = '<img src="' + loadingImage + '" width="16" height="16" class="idd_listItemLogo" />';
} else if (optionItem.attr('data')){ } else if (optionItem.attr('data')){
// Add an invisible 1px gif inline // Add an invisible 1px gif inline
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment