מדיה ויקי: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);
var $this = $(this);
// $.getJSON($this.siblings('span.mw-title').find('a:first').attr('href'));
$.getJSON($this.siblings('span.mw-title').find('a:last').attr('href'));
// $this.closest('.mw-changeslist-line-not-watched').addClass('.mw-changeslist-line-watched')
// .removeClass('mw-changeslist-line-not-watched');//.hide();
// var diff = /diff=([0-9]+)/.exec($(this).prop('href'));
// $(this).before($('<span>&Otimes;</span>').data('diff', diff[1]).click(function(){
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: $(this).title
titles: $this.title
}).done(function(){
}).done(function(){
mw.notify('v');
mw.notify('v');