Login   Register  
PHP Classes
elePHPant
Icontem

File: vendor/formee-3-1/js/formee.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Giovanni Ramos  >  Multi-Anexos  >  vendor/formee-3-1/js/formee.js  >  Download  
File: vendor/formee-3-1/js/formee.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Multi-Anexos
Compose and send e-mail messages with attachments
Author: By
Last change: Added a button custom file-input replacement to Formee Framework.
Tested in IE8+, Chrome and Firefox
Date: 2 years ago
Size: 628 bytes
 

Contents

Class file image Download
function equalHeight(group) {
    var tallest = 0;
    group.each(function() { 
        var thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}
jQuery(document).ready(function() {
    equalHeight(jQuery(".formee-equal"));
});
jQuery(window).resize(function() {
    equalHeight(jQuery(".formee-equal"));
});


addFile = function() {
    var $this = $(this);
    $obj = $this.parent().prev('input');
    $id =  $obj.attr('id');
    
    $('#' + $id).val($this.val());
};

$(function() {
    $('input:file').bind('change', addFile);
});