מדיה ויקי:Gadget-rollBackSummary.js: הבדלים בין גרסאות בדף
ניסוי |
|||
| שורה 11: | שורה 11: | ||
if ($( '.' + rollbackSummaryClass ).length ) return; | if ($( '.' + rollbackSummaryClass ).length ) return; | ||
$( 'span.mw-rollback-link', content ) | $( 'span.mw-rollback-link', content ) | ||
.append( | .append(' | ') | ||
.append( | .append( | ||
$( '<a>', { href: '#', 'class': rollbackSummaryClass, title: 'שחזור מהיר עם תקציר', text: 'תקציר' }) | $( '<a>', { href: '#', 'class': rollbackSummaryClass, title: 'שחזור מהיר עם תקציר', text: 'תקציר' }) | ||
| שורה 18: | שורה 18: | ||
if ( summary ) | if ( summary ) | ||
$( this ).attr( 'href', $(this).siblings( 'a:first' ).attr( 'href' ) + '&summary=' + encodeURIComponent( summary ) ); | $( this ).attr( 'href', $(this).siblings( 'a:first' ).attr( 'href' ) + '&summary=' + encodeURIComponent( summary ) ); | ||
}) | })); | ||
}); | }); | ||