מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
function seen() { | function seen(obj) { | ||
obj.before( // Thanks to חיים 7 | |||
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | $('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | ||
.css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | .css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | ||
| שורה 9: | שורה 9: | ||
$this.remove(); | $this.remove(); | ||
} ) ); | } ) ); | ||
$('.mw-changeslist-line-watched a.mw-title').before( | $('.mw-changeslist-line-watched a.mw-title').before( | ||
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | $('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | ||
.css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | .css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | ||
| שורה 32: | שורה 32: | ||
}).done(function(){ | }).done(function(){ | ||
$this.closest('.mw-changeslist-line-not-watched').addClass('mw-changeslist-line-watched'); | $this.closest('.mw-changeslist-line-not-watched').addClass('mw-changeslist-line-watched'); | ||
seen(); | seen($this); | ||
}); | }); | ||
} ) ); | } ) ); | ||
$('.mw-changeslist-line-not-watched ').hide(); | $('.mw-changeslist-line-not-watched ').hide(); | ||
seen(); | seen($('.mw-changeslist-line-watched span.mw-title')); | ||
$('.mw-changeslist-line-watched td.mw-enhanced-rc').before( | $('.mw-changeslist-line-watched td.mw-enhanced-rc').before( | ||
$('<a>', {text: '●', title: 'הסתר עריכה', href: '#nw'}) | $('<a>', {text: '●', title: 'הסתר עריכה', href: '#nw'}) | ||