Mega Commit: New controls: tree control, pickers of all sorts, image viewer, media uploader. Removed a zillion iframes. New modal window standard framework. Fixes some bugs. ClientDependency & Examine DLL updates. Lots of JS enhancements, libs and more methods added to ClientTools. [TFS Changeset #63838]
8 lines
255 B
JavaScript
8 lines
255 B
JavaScript
(function($) {
|
|
$.fn.VerticalAlign = function(opts) {
|
|
return this.each(function() {
|
|
var top = (($(this).parent().height() - $(this).height()) / 2);
|
|
$(this).css('margin-top', top);
|
|
});
|
|
};
|
|
})(jQuery); |