Fix lazy loading checkbox spacing and duplicates
This commit is contained in:
@@ -762,7 +762,7 @@ jQuery(document).ready(function($){
|
||||
if ( -1 == response.data.sections ) {
|
||||
if(response.data.players.length) {
|
||||
$(response.data.players).each(function( key, value ) {
|
||||
//if($target.eq(i).find("input[value=" + value.ID + "]").length) return true;
|
||||
if($target.eq(i).find("input[value=" + value.ID + "]").length) return true;
|
||||
$target.eq(i).append("<li><label class=\"selectit\"><input type=\"checkbox\" value=\"" + value.ID + "\" name=\"sp_player[" + index + "][]\"> " + value.post_title + "</li>");
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user