Commit 40e5c9a5 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix for artefactchooser search in IE (broken by commit 6b8e261d)

parent 1db00872
......@@ -221,17 +221,14 @@ if (ul) {
sendjsonrequest(p.jsonScript, queryData, 'GET', function(data) {
var tbody = getFirstElementByTagAndClassName('tbody', null, p.datatable);
if (tbody) {
// var temp = DIV();
// temp.innerHTML = data['data']['tablerows'];
// swapDOM(tbody, temp);
if (
(document.all && document.documentElement && typeof(document.documentElement.style.maxHeight) != "undefined" && !window.opera)
||
(/Konqueror|AppleWebKit|KHTML/.test(navigator.userAgent))) {
var temp = $('ie-workaround');
temp.innerHTML = '<table><tbody>' + data['data']['tablerows'];
var temp = DIV({'id':'ie-workaround'});
temp.innerHTML = '<table><tbody>' + data.data.tablerows + '</tbody></table>';
swapDOM(tbody, temp.childNodes[0].childNodes[0]);
replaceChildNodes(temp);
removeElement(temp);
}
else {
// This does not work in IE and Konqueror, the tbody
......
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