projects
/
openx
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a2862a
)
Fetch on resize: "rendered" keeps track of already fetched banners
author
Kai Moritz
<kai@juplo.de>
Thu, 28 Feb 2013 16:08:38 +0000
(17:08 +0100)
committer
Kai Moritz
<kai@juplo.de>
Thu, 28 Feb 2013 16:34:18 +0000
(17:34 +0100)
jquery.openx.js
patch
|
blob
|
history
diff --git
a/jquery.openx.js
b/jquery.openx.js
index
a9827af
..
66eb110
100644
(file)
--- a/
jquery.openx.js
+++ b/
jquery.openx.js
@@
-32,6
+32,7
@@
min_width = {},
max_width = {},
width,
+ rendered = {},
queue = [],
output = [];
@@
-187,6
+188,7
@@
if (match)
max_width[id] = match[1];
}
+ rendered[id] = false;
}
});
}
@@
-209,6
+211,7
@@
if (width >= min_width[id] && width <= max_width[id]) {
queue.push(id);
src += escape(id + '=' + OA_zones[slots[id].id] + "|");
+ rendered[id] = true;
}
}
src += '&nz=1'; // << We want to fetch named zones!