מדיה ויקי: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(); | ||
var prevs = $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(){ | |||
var thediff = /diff=([0-9]+)/.exec($(this).closest('.mw-changeslist-line-watched') | var thediff = /diff=([0-9]+)/.exec($(this).closest('.mw-changeslist-line-watched') | ||
.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'); | }).closest('.mw-changeslist-line-watched'); | ||
prevs.removeClass('blueedit').addClass('yellowedit') | prevs.removeClass('blueedit').addClass('yellowedit').find('.mark-all-edits').remove(); | ||
unseen(prevs.find('span.mw-title')); | unseen(prevs.find('span.mw-title')); | ||
$this.remove(); | $this.remove(); | ||
| שורה 47: | שורה 44: | ||
.addClass('mw-changeslist-line-watched').removeClass('yellowedit').addClass('blueedit'); | .addClass('mw-changeslist-line-watched').removeClass('yellowedit').addClass('blueedit'); | ||
seen($this); | seen($this); | ||
var name = $this.closest('table').find('.mw-changeslist-title').text(); | |||
var nexts = $this.closest('body').find('.mw-changeslist-line-not-watched') | |||
.find('.mw-changeslist-title').filter(function(){ | |||
var thediff = /oldid=([0-9]+)/.exec($(this).closest('.mw-changeslist-line-watched') | |||
.parent().find('a[href*="oldid"]').prop('href'))[1]; | |||
return ($(this).text() == name) && (thediff < diff); | |||
}).closest('.mw-changeslist-line-not-watched'); | |||
nexts.removeClass('yellowedit').addClass('blueedit').find('.unmark-edits').remove(); | |||
seen(nexts.find('span.mw-title')); | |||
$this.remove(); | $this.remove(); | ||
}); | }); | ||