אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-TemplatesExternalLinks.js"

אידיש
(ייבוא מוויקיפדיה העברית, ראה רשימת התורמים)
 
(אידיש)
שורה 274: שורה 274:


dialog
dialog
.append($('<p>').text('השדות המסומנים באדום הם חובה, השאר אופציונליים'))
.append($('<p>').text('פעלדער געצייכנט רויט זענען פארלאנגט, די אנדערע זענען אפּציאנאל'))
.append(table)
.append(table)
.append($('<p>').css({height: '2em'}))
.append($('<p>').css({height: '2em'}))
שורה 337: שורה 337:


var killold = $('#ltw_dialog').remove(), // kill existing popup when button is pressed again.
var killold = $('#ltw_dialog').remove(), // kill existing popup when button is pressed again.
title = 'יצירת תבנית קישור',
title = 'שאפן לינק מוסטער',
dialog = $('<div>', {id: 'ltw_dialog'}).css({backgroundColor: '#E8E8E8', maxWidth: '58em'}).dialog({
dialog = $('<div>', {id: 'ltw_dialog'}).css({backgroundColor: '#E8E8E8', maxWidth: '58em'}).dialog({
title: title,
title: title,
שורה 390: שורה 390:
tools: {
tools: {
'linkTemplatewizard': {
'linkTemplatewizard': {
label: 'תבנית קישור',
label: 'לינק מוסטער',
filters: [ 'body.ns-subject' ],
filters: [ 'body.ns-subject' ],
type: 'button',
type: 'button',
שורה 408: שורה 408:
$(function() {
$(function() {
$('div #toolbar').append( // "old style"
$('div #toolbar').append( // "old style"
$('<img>', {src: '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png', title: 'תבנית קישור', 'class': 'mw-toolbar-editbutton'})
$('<img>', {src: '//upload.wikimedia.org/wikipedia/commons/3/34/Button_LINK_HE1.png', title: 'לינק מוסטער', 'class': 'mw-toolbar-editbutton'})
.css({cursor: 'pointer'})
.css({cursor: 'pointer'})
.click(function() {mw.loader.using('jquery.ui', fireDialog);})
.click(function() {mw.loader.using('jquery.ui', fireDialog);})