Skip to content

Commit

Permalink
Add table class to tables that don't have it.
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed May 4, 2018
1 parent 39be46b commit d78a128
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PHPDraft/Out/HTML/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $(function () {
function escapeRegExp(str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
};
$('table:not(.table)').each(function(){ $(this).addClass('table');});
});

$('.collapse.request-card').on('shown.bs.collapse', function () {
Expand All @@ -38,4 +39,4 @@ $('pre.collapse.response-body').on('shown.bs.collapse', function () {
$(this).parent().find('h6.response-body .fas.indicator').removeClass('fa-angle-up').addClass('fa-angle-down');
}).on('hidden.bs.collapse', function () {
$(this).parent().find('h6.response-body .fas.indicator').removeClass('fa-angle-down').addClass('fa-angle-up');
});
});

0 comments on commit d78a128

Please sign in to comment.