Sha256: 551091a72679b7bb26ee70b466b651946a0ff6603cc6133734fe3a44480fa8f4

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

equalHeight = function(selector){
  cols = $(selector);
  cols_h = [];
  cols.each(function(){
    $(this).css("height", "auto");
  });
  cols.each(function(i){ cols_h.push($(cols[i]).height()); });    

  max_h = Math.max.apply( Math, cols_h );
  cols.css("min-height", max_h+"px");
}


randomString = function (){
  var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
  var string_length = 8;
  var randomstring = '';
  for (var i=0; i<string_length; i++) {
    var rnum = Math.floor(Math.random() * chars.length);
    randomstring += chars.substring(rnum,rnum+1);
  }
  return randomstring;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
friends_ajax_core-0.0.55 app/assets/javascripts/ajax_ui_core/friends_ui.js.erb
friends_ajax_core-0.0.52 app/assets/javascripts/ajax_ui_core/friends_ui.js.erb
friends_ajax_core-0.0.51 app/assets/javascripts/ajax_ui_core/friends_ui.js.erb