Commit 3d22f490 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

IE Fixes

parent 552aacc6
......@@ -473,7 +473,7 @@ function template_render($template, $mode, $data=array()) {
var ul = x.parentNode.parentNode;
if (ul.childNodes.length == 1) {
ul.parentNode.moveTarget.acceptData.format = ul.parentNode.moveTarget.acceptData.oldformat;
replaceChildNodes(ul.parentNode, SPAN({ class: 'empty_block' }, get_string('empty_block')));
replaceChildNodes(ul.parentNode, SPAN({ 'class': 'empty_block' }, get_string('empty_block')));
}
else {
removeElement(x.parentNode);
......
......@@ -65,10 +65,13 @@ var templates = new TableRenderer(
function(r) { return TD(null, H3(null, r.title), P(null, r.description)); },
function(r) { return TD(null, IMG({'src': '{$wwwroot}thumb.php?type=template&name=' + r.name})); },
function(r) {
var button = BUTTON({'name': 'template', 'type': 'button'}, '{$selecttemplate}');
var button = BUTTON({'type': 'button'}, '{$selecttemplate}');
connect(button, 'onclick', function () {
$('template').value = r.name;
logDebug(r.name);
logDebug($('template').value);
document.forms.template_selection.submit();
return false;
});
return TD(null,button);
}
......
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