מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 3: | שורה 3: | ||
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | $('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | ||
.css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(doremove) ); | .css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(doremove) ); | ||
} | } | ||
function doremove() { | function doremove() { | ||
| שורה 54: | שורה 44: | ||
$('.mw-changeslist-line-not-watched ').hide(); | $('.mw-changeslist-line-not-watched ').hide(); | ||
seen($('.mw-changeslist-line-watched span.mw-title')); | seen($('.mw-changeslist-line-watched span.mw-title')); | ||
$('.mw-changeslist-line-watched a.mw-title').before( | |||
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'}) | |||
.css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | |||
var $this = $(this); | |||
$.getJSON($this.siblings('a.mw-title').attr('href')); | |||
$this.closest('.mw-changeslist-line-watched').removeClass('.mw-changeslist-line-watched') | |||
.addClass('mw-changeslist-line-not-watched'); | |||
$this.closest('.mw-changeslist-line-not-watched').hide(); | |||
$this.remove(); | |||
} ) ); | |||
mw.loader.using('mediawiki.util').done( function() { | mw.loader.using('mediawiki.util').done( function() { | ||
$( mw.util.addPortletLink('p-personal', '#', 'הסתר עריכות שנקראו') ).click(function() { | $( mw.util.addPortletLink('p-personal', '#', 'הסתר עריכות שנקראו') ).click(function() { | ||