Commit 6d4e28f9 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix group member paging in IE7 (bug 3136)

parent 98fa9c87
......@@ -50,7 +50,19 @@ function UserSearch() {
this.doSearch = function() {
self.params.action = 'search';
sendjsonrequest('membersearchresults.php', self.params, 'POST', function(data) {
getElementsByTagAndClassName('tbody', null,'results')[0].innerHTML = data.data.tablerows;
var tbody = getElementsByTagAndClassName('tbody', null, 'results')[0];
if (
(document.all && document.documentElement && typeof(document.documentElement.style.maxHeight) != "undefined" && !window.opera)
||
(/Konqueror|AppleWebKit|KHTML/.test(navigator.userAgent))) {
var temp = DIV({'id':'ie-workaround'});
temp.innerHTML = '<table><tbody>' + data.data.tablerows + '</tbody></table>';
swapDOM(tbody, temp.childNodes[0].childNodes[0]);
removeElement(temp);
}
else {
tbody.innerHTML = data.data.tablerows;
}
$('pagination').innerHTML = data.data.pagination;
if (data.data.count) {
self.rewritePaging();
......
......@@ -22,8 +22,6 @@
</table>
</div>
<div id="pagination">{$pagination}</div>
<script type="text/javascript">{$pagination_js}</script>
{include file="columnleftend.tpl"}
{include file="footer.tpl"}
Supports Markdown
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