מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 17: | שורה 17: | ||
.addClass('mw-changeslist-line-not-watched').removeClass('blueedit').addClass('yellowedit'); | .addClass('mw-changeslist-line-not-watched').removeClass('blueedit').addClass('yellowedit'); | ||
var name = $this.closest('table').find('.mw-changeslist-title').text(); | var name = $this.closest('table').find('.mw-changeslist-title').text(); | ||
$this.closest('body').find('.mw-changeslist-line-watched').find('.mw-changeslist-title').filter(function(){ | var prevs = $this.closest('body').find('.mw-changeslist-line-watched').find('.mw-changeslist-title').filter(function(){ | ||
//$(this).before($('<span>', {text: diff})); | //$(this).before($('<span>', {text: diff})); | ||
//var thediff = /diff=([0-9]+)/.exec($(this).parent().find('a[href*="diff"]').prop('href'))[1]; | //var thediff = /diff=([0-9]+)/.exec($(this).parent().find('a[href*="diff"]').prop('href'))[1]; | ||
| שורה 24: | שורה 24: | ||
.parent().find('a[href*="diff"]').prop('href'))[1]; | .parent().find('a[href*="diff"]').prop('href'))[1]; | ||
return ($(this).text() == name) && (thediff < diff); | return ($(this).text() == name) && (thediff < diff); | ||
}).closest('.mw-changeslist-line-watched').removeClass('blueedit').addClass('yellowedit').find('.mark-all-edits').addClass('blueedit'); | }).closest('.mw-changeslist-line-watched'); | ||
prevs.removeClass('blueedit').addClass('yellowedit') | |||
.find('.mark-all-edits').addClass('blueedit'); | |||
unseen(prevs); | |||
$this.remove(); | $this.remove(); | ||
}); | }); | ||