Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
40e5c9a5
Commit
40e5c9a5
authored
Aug 21, 2009
by
Richard Mansfield
Browse files
Fix for artefactchooser search in IE (broken by commit
6b8e261d
)
parent
1db00872
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/form/elements/artefactchooser.php
View file @
40e5c9a5
...
...
@@ -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]);
re
placeChildNodes
(temp);
re
moveElement
(temp);
}
else {
// This does not work in IE and Konqueror, the tbody
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment