מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 2: | שורה 2: | ||
obj.before( // Thanks to חיים 7 | 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( | .css({marginLeft: '0.3em', marginRight: '0.1em', color: '#990066'}).click(function() { | ||
var $this = $(this); | |||
function | $.getJSON($this.siblings('span.mw-title').find('a:first').attr('href')); | ||
$this.closest('.mw-changeslist-line-watched').removeClass('.mw-changeslist-line-watched') | |||
.addClass('mw-changeslist-line-not-watched'); | |||
unseen($this); | |||
$this.closest('.mw-changeslist-line-not-watched').hide(); | |||
$this.remove(); | |||
}) ); | |||
} | } | ||
function unseen(obj) { | function unseen(obj) { | ||