ElEditors, Interface administrators, Administrators
70,866
edits
No edit summary |
No edit summary |
||
Line 330: | Line 330: | ||
var link = $(this).find('> .skill-wrap-text > a:not(.image)').attr('href'); | var link = $(this).find('> .skill-wrap-text > a:not(.image)').attr('href'); | ||
if (link.length) window.location.href = link; | if (link.length) window.location.href = link; | ||
}); | |||
$('.related-skills').each(function() { | |||
$(this).replaceWith( $(this).html() | |||
.replace(/<tbody/gi, "<div class='related-skills'") | |||
.replace(/<tr/gi, "<div data-type='table-row'") | |||
.replace(/<\/tr>/gi, "</div>") | |||
.replace(/<td/gi, "<div data-type='table-cell'") | |||
.replace(/<\/td>/gi, "</div>") | |||
.replace(/<\/tbody/gi, "<\/div") | |||
); | |||
}); | }); | ||