Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created February 22, 2014 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreiglingeanu/9156245 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/9156245 to your computer and use it in GitHub Desktop.
tmd
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