Commit 6ffc213c authored by Ad Schellevis's avatar Ad Schellevis

fix hook_stacked_form_tables (mobile), do not copy id tags. There still is...

fix hook_stacked_form_tables (mobile), do not copy id tags. There still is some old javascript code which breaks.
parent 5402a89a
......@@ -84,11 +84,11 @@ function hook_stacked_form_tables(match)
}
if (children.length == 1) {
// simple seperator line, colspan = 2
$(this).before($(this).clone().attr('colspan', 1).addClass('hidden-sm hidden-md hidden-lg'));
$(this).before($(this).clone().removeAttr("id").attr('colspan', 1).addClass('hidden-sm hidden-md hidden-lg'));
$(this).addClass('hidden-xs');
} else if (children.length == 2) {
// form input row, create new <tr> for mobile header containing first <td> content
var mobile_header = $(this).clone().html("").addClass('hidden-sm hidden-md hidden-lg');
var mobile_header = $(this).clone().removeAttr("id").html("").addClass('hidden-sm hidden-md hidden-lg');
mobile_header.append($('<td/>').append(children.first().clone(true, true)));
// hide "all help" on mobile
if (row_number == 0 && $(this).find('td:eq(1) > i').length == 1) {
......
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