מדיה ויקי:Gadget-rollBackSummary.js: הבדלים בין גרסאות בדף
מראה
מ תיקון של משתמש:קיפודנחש |
מ עדכון של משתמש:קיפודנחש |
||
| שורה 3: | שורה 3: | ||
* Written by [[:he:User:Yonidebest]] based on [[:en:User:Ilmari Karonen]]'s script. | * Written by [[:he:User:Yonidebest]] based on [[:en:User:Ilmari Karonen]]'s script. | ||
* Translated to Hebrew by [[User:ברק שושני]] | * Translated to Hebrew by [[User:ברק שושני]] | ||
* Rewritten by [[User:קיפודנחש]] | |||
* | * | ||
*/ | */ | ||
$(document).ready(function() { | |||
function | var hist = mw.util.getParamValue('action') == 'history'; | ||
$('span.mw-rollback-link').append( | |||
$('<a>', {href: '#', title: 'שחזור מהיר עם תקציר'}) | |||
.text(hist ? ' | תקציר' : '[תקציר]') | |||
.click(function() { | |||
var summary = $.trim(prompt('אנא הזינו תקציר לשחזור') || ''); | |||
if (summary) | |||
window.location = $(this).parent().find('a:eq(0)').attr('href') + '&summary=' + encodeURIComponent(summary); | |||
})); | |||
}); | |||
} | |||
גרסה מ־17:12, 30 בנובמבר 2011
/*
* Adds option to add summary to rollback revets.
* Written by [[:he:User:Yonidebest]] based on [[:en:User:Ilmari Karonen]]'s script.
* Translated to Hebrew by [[User:ברק שושני]]
* Rewritten by [[User:קיפודנחש]]
*
*/
$(document).ready(function() {
var hist = mw.util.getParamValue('action') == 'history';
$('span.mw-rollback-link').append(
$('<a>', {href: '#', title: 'שחזור מהיר עם תקציר'})
.text(hist ? ' | תקציר' : '[תקציר]')
.click(function() {
var summary = $.trim(prompt('אנא הזינו תקציר לשחזור') || '');
if (summary)
window.location = $(this).parent().find('a:eq(0)').attr('href') + '&summary=' + encodeURIComponent(summary);
}));
});