מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 4: | שורה 4: | ||
$('<a>', {text: 'P', title: 'סמן עריכה כנקראה', href: '#nw'}) | $('<a>', {text: 'P', 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() { | ||
var $this = $(this); | |||
$.getJSON($this.siblings('span.mw-title').find('a:last').attr('href')); | |||
new mw.Api().postWithToken('csrf', { | new mw.Api().postWithToken('csrf', { | ||
action: 'setnotificationtimestamp', | action: 'setnotificationtimestamp', | ||
timestamp: '2016-09-11T12%3A00%3A00.000Z', | timestamp: '2016-09-11T12%3A00%3A00.000Z', | ||
titles: $ | titles: $this.title | ||
}).done(function(){ | }).done(function(){ | ||
mw.notify('v'); | mw.notify('v'); | ||