Skip to content

Commit

Permalink
Merge pull request mbrevoort#9 from liorsion/master
Browse files Browse the repository at this point in the history
Code fails to select with jquery 1.5 on firefox
  • Loading branch information
mbrevoort committed May 30, 2011
2 parents 15d0da6 + bfd1b6d commit 7d4163c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion jquery.facebook.multifriend.select.css
Expand Up @@ -69,7 +69,8 @@ limitations under the License.

#jfmfs-friend-selector {
width:725px;
height:376px;
height:376px;
overflow-y:hidden;
}

#jfmfs-inner-header {
Expand Down
6 changes: 3 additions & 3 deletions jquery.facebook.multifriend.select.js
Expand Up @@ -149,7 +149,7 @@
// already been selected, if so, just return
if(!$(this).hasClass("selected") &&
maxSelectedEnabled() &&
$(".jfmfs-friend.selected").size() >= settings.max_selected &&
$(".jfmfs-friend.selected").length >= settings.max_selected &&
settings.max_selected != 1) {
return;
}
Expand All @@ -176,7 +176,7 @@
for(var i=start; i<=end; i++) {
var aFriend = $( all_friends[i] );
if(!aFriend.hasClass("hide-non-selected") && !aFriend.hasClass("hide-filtered")) {
if( maxSelectedEnabled() && $(".jfmfs-friend.selected").size() < settings.max_selected ) {
if( maxSelectedEnabled() && $(".jfmfs-friend.selected").length < settings.max_selected ) {
$( all_friends[i] ).addClass("selected");
}
}
Expand Down Expand Up @@ -313,7 +313,7 @@
};

var selectedCount = function() {
return $(".jfmfs-friend.selected").size();
return $(".jfmfs-friend.selected").length;
};

var maxSelectedEnabled = function () {
Expand Down
6 changes: 3 additions & 3 deletions jquery.facebook.multifriend.select.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d4163c

Please sign in to comment.