Permalink
Browse files

Merge pull request #9 from liorsion/master

Code fails to select with jquery 1.5 on firefox
  • Loading branch information...
mbrevoort committed May 30, 2011
2 parents 15d0da6 + bfd1b6d commit 7d4163ce1bed26334e2a9916db93ce4399326530
@@ -69,7 +69,8 @@ limitations under the License.
#jfmfs-friend-selector {
width:725px;
- height:376px;
+ height:376px;
+ overflow-y:hidden;
}
#jfmfs-inner-header {
@@ -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;
}
@@ -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");
}
}
@@ -313,7 +313,7 @@
};
var selectedCount = function() {
- return $(".jfmfs-friend.selected").size();
+ return $(".jfmfs-friend.selected").length;
};
var maxSelectedEnabled = function () {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 7d4163c

Please sign in to comment.