Created
June 27, 2016 22:18
-
-
Save franklinbr/65126503acd9438d2db884146fd6387a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var original1 = null; | |
var original2 = null; | |
var permissao = 0; | |
$('li[class=box-imagem]').each(function(i, obj){ | |
$('li[class=box-imagem]').each(function(j, obk){ | |
if(i != j && i > j) { | |
original2 = $(obk).data('original'); | |
original1 = $(obj).data('original'); | |
if(original1 == original2) { | |
$(obj).css('border', '1px solid red'); | |
$(obk).css('border', '1px solid red'); | |
permissao++ | |
} | |
} | |
}); | |
}); | |
if(permissao > 0) { | |
console.debug('tem repetidos'); | |
} | |
else { | |
$('li[class=box-imagem]').removeAttr('style'); | |
console.debug('ok!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment