Created
November 11, 2014 23:57
-
-
Save Stasevi4/250ff8aa8e975b7dc477 to your computer and use it in GitHub Desktop.
Resize all selected block to same size
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
(function ($) { | |
$.fn.blockresize = function () { | |
var height = 0; | |
this.each(function () { | |
c_height = parseInt($(this).height()); | |
if (c_height > height) { | |
height = c_height; | |
} | |
}); | |
this.css('height', height); | |
return this; | |
} | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment