Created
February 22, 2014 15:06
-
-
Save andreiglingeanu/9156245 to your computer and use it in GitHub Desktop.
tmd
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
jQuery('table.fullWidth > tbody > tr') // selectăm rîndurile din tabel | |
.slice(1) // primul nu ne interesează, în el se conține titlul la tabel | |
.filter(function(){ // filtrăm setul primit de rînduri ca să rămînem doar cu rîndurile ce nu au mesaje noi | |
// imaginea roșie se numește unlockednew.gif, cea albastră - unlocked.gif | |
// se poate și așa: return jQuery(this).find('img')[0].src.match(/unlocked.gif$/)); | |
return ! (jQuery(this).find('img')[0].src.match(/new.gif$/)); | |
}).remove(); // ștergem rîndurile ce nu au mesaje noi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment