Last active
December 22, 2016 22:11
-
-
Save smartdeal/4f4c4c270567c0fc7cdd10ad344d16d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.main-content table').each(function(indx, el){ | |
if ($(el).parent().outerWidth() < $(el).outerWidth()) { | |
if (!$(el).parent().hasClass('table-responsive')) { | |
$(el).wrap('<div class="table-responsive"></div>'); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment