Redaktor:Saskardin/monobook.js
Poznámka: Aby sa zmeny prejavili, po uložení musíte vymazať vyrovnávaciu pamäť vášho prehliadača. Mozilla / Firefox / Safari: držte stlačený Shift a kliknite na Reload alebo stlačte buď Ctrl-F5 alebo Ctrl-R (Command-R na Macintosh); Konqueror:: kliknite na tlačidlo Reload alebo stlačte F5; Opera vymazať vyrovnávaciu pamäť prehliadača v ponuke Tools→Preferences; Internet Explorer: držte Ctrl a kliknite na Refresh alebo stlačte Ctrl-F5;
// [[:en:User:Lupin/popups.js]] - please include this line, prosím nemažte tento riadok
// [[Redaktor:jsimlo/popups.js]] - please include this line, prosím nemažte tento riadok
document.write('<script type="text/javascript" src="'
+ 'http://sk.wikipedia.org/w/index.php?title=User:jsimlo/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function fixformat(){
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(/<\/?(b|strong)>/gi, "'''");
txt.value = txt.value.replace(/<\/?(i|em|var)>/gi, "''");
txt.value = txt.value.replace(/<\/?(h1)>/gi, "==");
txt.value = txt.value.replace(/<\/?(li)>/gi, "*");
document.editform.wpSummary.value += "wikify";
document.editform.wpMinoredit.checked = true;
}
function replace(){
var s = prompt("Hľadaný výraz?");
if(s){
var r = prompt("Nový výraz?");
if(!r && r != '') return;
var txt = document.editform.wpTextbox1;
txt.value = txt.value.replace(new RegExp(s, "g"), r);
document.editform.wpSummary.value += "zámena "+r+" za "+s;
document.editform.wpMinoredit.checked = true;
}
}
function addlilink(tabs, url, name, id){
var na = document.createElement('a');
na.href = url;
na.id = id;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
function addPurge(){
ta['ca-purge'] = ['g', 'Vymaže internú cache pre túto stránku'];
if(!document.getElementById) return;
var x = document.getElementById('ca-history');
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(!x) return;
if(x.children) x = x.children[0];
else x = x.childNodes[0];
addlilink(tabs, x.href.replace(/=history/, "=purge"), 'purge', 'ca-purge');
}
function addEditSection0(){
ta['ca-edit-0'] = ['0', 'Úprava hlavnej sekcie tejto stránky'];
if(!document.getElementById) return;
var x = document.getElementById('ca-edit');
if(!x) return;
var y = document.createElement('LI');
y.id = 'ca-edit-0';
if(x.className == 'selected'){
if(/&action=edit§ion=0$/.test(window.location.href)){
x.className = 'istalk';
y.className = 'selected';
} else {
x.className = 'selected istalk';
}
} else if(x.className == 'selected istalk'){
if(/&action=edit§ion=0$/.test(window.location.href)){
x.className = 'istalk';
y.className = 'selected istalk';
} else {
y.className = 'istalk';
}
} else {
y.className = x.className;
x.className = 'istalk';
}
var z = document.createElement('A');
if(x.children){
z.href = x.children[0].href + '§ion=0';
z.appendChild(document.createTextNode('0'));
y.appendChild(z);
document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling);
}else{
z.href = x.childNodes[0].href + '§ion=0';
z.appendChild(document.createTextNode('0'));
y.appendChild(z);
document.getElementById('p-cactions').childNodes[3].insertBefore(y,x.nextSibling);
}
}
function addForceSummary(){
if(!/&action=edit/.test(window.location.href)) return;
if(/§ion=new/.test(window.location.href)) return;
if(!document.forms.editform) return;
document.forms.editform.wpSave.onclick = forceSummary;
}
function forceSummary(){
if(!document.forms.editform.wpSummary.value.replace(/^(\/\*.*\*\/)? *(.*) *$/,'$2')){
var r = prompt('Si si istý, že nechceš pridať žiadne zhrnutie?\nMôžeš tak urobiť sem:',document.forms.editform.wpSummary.value);
if(r == null) return false;
document.forms.editform.wpSummary.value = r;
}
return true;
}
function morelinks(){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(document.title.indexOf("Úprava stránky Diskusia s redaktorom") == 0){
addlilink(tabs, 'javascript:vitajte()', 'vitaj', '');
}else if(document.title.indexOf("Úprava ") == 0){
addlilink(tabs, 'javascript:replace()', 'zameň', '');
addlilink(tabs, 'javascript:fixformat()', 'formátuj', '');
}
}
function addToolBoxLinks(){
var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0];
addlilink(tb, "javascript:insertTags('{{ja|Rádiológ}} 16:25, 14. jún 2009 (UTC)','','')", 'Môj podpis', '');
addlilink(tb, '/wiki/Special:Newpages', 'Nové stránky', '');
addlilink(tb, '/wiki/Special:Shortpages', 'Krátke stránky', '');
addlilink(tb, '/wiki/Special:Newimages', 'Nové obrázky', '');
}
function myLoadFuncs(){
addPurge();
addEditSection0();
addForceSummary();
morelinks();
addToolBoxLinks();
}
//tt
function addmonobook ()
{
nodUpload = document.getElementById ("t-upload");
if (nodUpload)
{
var nodToolsList = nodUpload.parentNode;
var nodUploadCommons_li = document.createElement ("li");
var nodUploadCommons_a = document.createElement ("a");
nodUploadCommons_a.href = "/wiki/Redaktor:Rádiológ/monobook.js";
nodUploadCommons_a.appendChild (document.createTextNode ("monobook.js"));
nodUploadCommons_li.appendChild (nodUploadCommons_a);
nodToolsList.insertBefore (nodUploadCommons_li, nodUpload.nextSibling);
}
}
addOnloadHook( addmonobook );
//tt
// --------- toolbar ---------
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e1/Button_smiley.png",
"speedTip": "Úsmev",
"tagOpen": "\x7b\x7bÚsmev",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/71/TableCell.png",
"speedTip": "Zvislá čiara",
"tagOpen": "|",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b9/Buttoncopyvio.png",
"speedTip": "Copyvio",
"tagOpen": "\x7b\x7bPorušenie autorských práv|zdroj=",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/b8/Bouton_Faut_sourcer.png",
"speedTip": "Bez zdroja",
"tagOpen": "\x7b\x7bBez zdroja",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/a9/Button_tournesol.png",
"speedTip": "Vitajte",
"tagOpen": "\x7b\x7bVitajte|redaktor=Rádiológ|reg=regáno}} --\x7E\x7E\x7E\x7E",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9f/Button_defaultsort.png",
"speedTip": "Defaultsort",
"tagOpen": "\x7b\x7bDEFAULTSORT:",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/41/Button_hr_halfwidth.png",
"speedTip": "Pomlčka",
"tagOpen": "–",
"tagClose": "",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/b/ba/Button_conserver.png",
"speedTip": "Hlasuj Za",
"tagOpen": "",
"tagClose": "",
"sampleText": "#{{za}} \~\~\~\~"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png",
"speedTip": "Hlasuj Proti",
"tagOpen": "",
"tagClose": "",
"sampleText": "#{{proti}} \~\~\~\~"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4e/Button_neutre.png",
"speedTip": "Hlasuj Neutral",
"tagOpen": "",
"tagClose": "",
"sampleText": "#{{neutral}} \~\~\~\~"};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/d/d1/Button_mysignature.png",
"speedTip": "nepodpísal",
"tagOpen": "\x7b\x7bnepodpísal|",
"tagClose": "}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ee/Button_vote_biblio.png",
"speedTip": "Infobox Osobnosť",
"tagOpen": "\x7b\x7bInfobox Osobnosť"+
"\n |Meno = ",
"tagClose":
"\n |Portrét = "+
"\n |Veľkosť obrázka = 230px"+
"\n |Popis = "+
"\n |Dátum narodenia = {{dnv|rok|mesiac|den}}"+
"\n |Miesto narodenia = "+
"\n |Dátum úmrtia = {{dúv|rokumrtia|mesiac|den|roknarodenia|mesiac|den}}"+
"\n |Miesto úmrtia = "+
"\n}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/91/Button_cite_web.png",
"speedTip": "Citácia elektronického dokumentu",
"tagOpen": "\x7b\x7bCitácia elektronického dokumentu"+
"\n | priezvisko = ",
"tagClose":
"\n | meno = "+
"\n | odkaz na autora = "+
"\n | titul = "+
"\n | url = "+
"\n | dátum vydania = "+
"\n | dátum aktualizácie = "+
"\n | dátum prístupu = "+
"\n | vydavateľ = "+
"\n | miesto = "+
"\n | jazyk = "+
"\n}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/ef/Button_cite_book.png",
"speedTip": "Citácia knihy",
"tagOpen": "\x7b\x7bCitácia knihy"+
"\n | priezvisko = ",
"tagClose":
"\n | meno = "+
"\n | odkaz na autora = "+
"\n | priezvisko2 = ",
"tagClose":
"\n | meno2 = "+
"\n | odkaz na autora2 = "+
"\n | titul = "+
"\n | vydavateľ = "+
"\n | miesto = "+
"\n | rok = "+
"\n | isbn = "+
"\n | kapitola = "+
"\n | url = "+
"\n | strany = "+
"\n | jazyk = "+
"\n}}",
"sampleText": ""};
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/49/Button_cite_journal.png",
"speedTip": "Citácia periodika",
"tagOpen": "\x7b\x7bCitácia periodika"+
"\n | priezvisko = ",
"tagClose":
"\n | meno = "+
"\n | autor = "+
"\n | odkaz na autora = "+
"\n | spoluautori = "+
"\n | titul = "+
"\n | periodikum = "+
"\n | odkaz na periodikum = "+
"\n | rok = "+
"\n | mesiac = "+
"\n | ročník = "+
"\n | číslo = "+
"\n | strany = "+
"\n | url = "+
"\n | issn = "+
"\n}}",
"sampleText": ""};
};
function addPurge(){
ta['ca-purge'] = ['g', 'Purge the internal cache for this page'];
if(!document.getElementById) return;
var x = document.getElementById('ca-history');
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(!x) return;
if(x.children) x = x.children[0];
else x = x.childNodes[0];
addlilink(tabs, x.href.replace(/=history/, "=purge"), 'purge', 'ca-purge');
}
function addEditSection0(){
ta['ca-edit-0'] = ['', 'Edit the zeroth section of this page'];
if(!document.getElementById) return;
var x = document.getElementById('ca-edit');
if(!x) return;
var y = document.createElement('LI');
y.id = 'ca-edit-0';
if(x.className == 'selected'){
if(/&action=edit§ion=0$/.test(window.location.href)){
x.className = 'istalk';
y.className = 'selected';
} else {
x.className = 'selected istalk';
}
} else if(x.className == 'selected istalk'){
if(/&action=edit§ion=0$/.test(window.location.href)){
x.className = 'istalk';
y.className = 'selected istalk';
} else {
y.className = 'istalk';
}
} else {
y.className = x.className;
x.className = 'istalk';
}
var z = document.createElement('A');
if(x.children){
z.href = x.children[0].href + '§ion=0';
z.appendChild(document.createTextNode('0'));
y.appendChild(z);
document.getElementById('p-cactions').children[1].insertBefore(y,x.nextSibling);
}else{
z.href = x.childNodes[0].href + '§ion=0';
z.appendChild(document.createTextNode('0'));
y.appendChild(z);
document.getElementById('p-cactions').childNodes[3].insertBefore(y,x.nextSibling);
}
}
function vitajte(){
var reg = confirm("Reg?");
document.editform.wpSummary.value = 'Vitajte/Welcome ';
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
if(reg)
txt.value += '{{Vitajte|redaktor=Rádiológ|reg=regáno}}';
else
txt.value += '{{Vitajte|redaktor=Rádiológ|reg=regnie}}';
txt.focus();
}
function experimenty(){
var dva = confirm("Druhýkrát?");
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
if (dva) {
txt.value += '{{experimenty2}}\n--~~'+'~~';
document.editform.wpSummary.value = '{{experimenty2}}';
} else {
txt.value += '{{experimenty}}\n--~~'+'~~';
document.editform.wpSummary.value = '{{experimenty}}';
}
txt.focus();
}
function vandalizmus(){
document.editform.wpSummary.value = '{{vandalizmus}}';
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{vandalizmus}}\n--~~'+'~~';
txt.focus();
}
function zaregistrujsa(){
document.editform.wpSummary.value = '{{zaregistruj sa}}';
var txt = document.editform.wpTextbox1;
if(txt.value.length > 0) txt.value += '\n';
txt.value += '{{zaregistruj sa}}\n--~~'+'~~';
txt.focus();
}
function addlilink(tabs, url, name, id){
var na = document.createElement('a');
na.href = url;
na.id = id;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
li.appendChild(na);
tabs.appendChild(li);
return li;
}
function morelinks(){
var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
if(document.title.indexOf("Úprava stránky Diskusia s redaktorom")
== 0){
addlilink(tabs, 'javascript:vitajte()', 'vitajte', '');
addlilink(tabs, 'javascript:experimenty()', 'exp', '');
addlilink(tabs, 'javascript:vandalizmus()', 'vandal', '');
addlilink(tabs, 'javascript:zaregistrujsa()', 'reg', '');
}
}
function LinkFA()
{
// iterate over all <span>-elements
for(var i=0; a = document.getElementsByTagName("span")[i]; i++) {
// if found a FA span
if(a.className == "FA") {
// iterate over all <li>-elements
for(var j=0; b = document.getElementsByTagName("li")[j]; j++) {
// if found a FA link
if(b.className == "interwiki-" + a.id) {
b.style.padding = "0 0 0 16px";
b.style.backgroundImage = "url('http://upload.wikimedia.org/wikipedia/en/6/60/LinkFA-star.png')";
b.style.backgroundRepeat = "no-repeat";
b.title = "This article has gained featured status";
}
}
}
}
}
function myLoadFuncs(){
addPurge();
// addEditSection0();
morelinks();
LinkFA();
}
if (window.addEventListener)
window.addEventListener("load",myLoadFuncs,false);
else if (window.attachEvent)
window.attachEvent("onload",myLoadFuncs);
else {
window._old_ABCD_onload = window.onload;
window.onload = function(){
window._old_ABCD_onload();
myLoadFuncs();
}
}
// install the Slovenian translation for [[:en:User:Cacycle/wikEd]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Helix84/wikEd_international_sk.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var anchor = "t-cite";
var nazov = "Hlavná stránka";
rexp = /http:\/\/sk\.wikipedia\.org\/wiki\/(.*)$/
if (rexp.exec(document.URL)) {
var match = rexp.exec(document.URL);
if (match) nazov = match[1];
}
function addCommonsLink ()
{
nodAnchor = document.getElementById (anchor);
if (nodAnchor)
{
var nodToolsList = nodAnchor.parentNode;
var nodLinkCommons_li = document.createElement ("li");
var nodLinkCommons_a = document.createElement ("a");
nodLinkCommons_li.id = "t-link-commons";
nodLinkCommons_a.href = "http://commons.wikimedia.org/wiki/Hlavná_stránka";
nodLinkCommons_a.target = "_blank";
nodLinkCommons_a.appendChild (document.createTextNode ("Wikimedia Commons"));
nodLinkCommons_li.appendChild (nodLinkCommons_a);
nodToolsList.insertBefore (nodLinkCommons_li, nodAnchor.nextSibling);
var nodSeparator_hr = document.createElement ("hr");
nodToolsList.insertBefore (nodSeparator_hr, nodAnchor.nextSibling);
}
}
function addCommonsGalLink ()
{
nodAnchor = document.getElementById (anchor);
if (nodAnchor)
{
var nodToolsList = nodAnchor.parentNode;
var nodGalLinkCommons_li = document.createElement ("li");
var nodGalLinkCommons_a = document.createElement ("a");
nodGalLinkCommons_li.id = "t-img-link-commons";
nodGalLinkCommons_a.href = "http://commons.wikimedia.org/wiki/"+nazov;
nodGalLinkCommons_a.target = "_blank";
nodGalLinkCommons_a.appendChild (document.createTextNode ("Commons/galéria"));
nodGalLinkCommons_li.appendChild (nodGalLinkCommons_a);
nodToolsList.insertBefore (nodGalLinkCommons_li, nodAnchor.nextSibling);
}
}
function addCommonsCatLink ()
{
nodAnchor = document.getElementById (anchor);
if (nodAnchor)
{
var nodToolsList = nodAnchor.parentNode;
var nodCatLinkCommons_li = document.createElement ("li");
var nodCatLinkCommons_a = document.createElement ("a");
nodCatLinkCommons_li.id = "t-cat-link-commons";
nodCatLinkCommons_a.href = "http://commons.wikimedia.org/wiki/Category:"+nazov;
nodCatLinkCommons_a.target = "_blank";
nodCatLinkCommons_a.appendChild (document.createTextNode ("Commons/kategória"));
nodCatLinkCommons_li.appendChild (nodCatLinkCommons_a);
nodToolsList.insertBefore (nodCatLinkCommons_li, nodAnchor.nextSibling);
}
}
addOnloadHook( addCommonsCatLink );
addOnloadHook( addCommonsGalLink );
addOnloadHook( addCommonsLink );
/////////////z polskej wiki prebratý kod na pridavanie textu do zhrnutia uprav
/*
== Automatyczne opisy zmian ==
; Autor (Author): [[:pl:User:Adziura|Adam Dziura]]
; Poprawki (Fixes): [[:pl:User:Nux|Maciej Jaros]]
<pre>
*/
function przyciskiOpis()
{
// stop before starting
if (window.przyciskiOpisDone)
return;
//
// sprawdzenie, czy to jest pole edycji z opisem zmian (nie jest takie jako nagłówek)
var el = document.getElementById('wpSummaryLabel');
if (el)
{
if (el.innerHTML.indexOf('Zhrnutie úprav')==-1)
return // stop
;
}
else
{
return; // stop
}
//
// dodanie elementu okalającego przyciski bezpośrednio za opisem zmian
var el = document.getElementById('wpSummary').nextSibling;
var opisBtns = document.createElement('span');
opisBtns.id = 'userSummaryButtons'
el.parentNode.insertBefore(document.createElement('br'), el)
el.parentNode.insertBefore(opisBtns, el)
//
// dodawanie przycisków
//var kl = 'userButtonsStyle';
var kl = ''; // klasa jest niepotrzebna (wszystkie <a> w #userSummaryButtons ustawione poprzez CSS)
if (opisBtns)
{
// drobne różne
przyciskiDodaj(opisBtns, 'štylistika', 'dodajOpis("štylistika")', kl,
'Úprava štylistiky');
przyciskiDodaj(opisBtns, 'preklepy', 'dodajOpis("preklepy")', kl,
'Oprava preklepov');
przyciskiDodaj(opisBtns, 'obrázok', 'dodajOpis("obrázok")', kl,
'Pridanie/zmena/zmazanie obrázku');
przyciskiDodaj(opisBtns, 'externé odkazy', 'dodajOpis("externé odkazy")', kl,
'Úprava externých odkazov');
przyciskiDodaj(opisBtns, 'wikilinky', 'dodajOpis("wikilinky")', kl,
'Úprava odkazov na iné články Wikipédie');
przyciskiDodaj(opisBtns, 'interwiki', 'dodajOpis("interwiki")', kl,
'Úprava odkazov na cudzojazyčné Wikipédie');
przyciskiDodaj(opisBtns, 'kategórie', 'dodajOpis("kategórie")', kl,
'Úprava kategórií');
przyciskiDodaj(opisBtns, 'infobox', 'dodajOpis("infobox")', kl,
'Vloženie/úprava infoboxu');
przyciskiDodaj(opisBtns, 'aktualizácia', 'dodajOpis("aktualizácia")', kl,
'Aktualizácia údajov');
przyciskiDodaj(opisBtns, 'výhonok', 'dodajOpis("výhonok")', kl,
'Pridanie výhonku');
}
}
/*
Parametry:
* elUserBtns - element okalający, do którego dodać przycisk
* pTekst - tekst w środku przycisku
* pAkcja - akcja (w formie tekstowej) jaką wykonać przy naciśnięciu; może być ciągiem poleceń
* pKlasa - klasa jeśli konieczna
* pOpis - opis widoczny w dymku przy przycisku
*/
function przyciskiDodaj(elUserBtns, pTekst, pAkcja, pKlasa, pOpis)
{
var nowyBtn = document.createElement('a');
// atrybuty
nowyBtn.appendChild(document.createTextNode(pTekst));
nowyBtn.title = pOpis;
if (pKlasa != '')
nowyBtn.className = pKlasa
;
nowyBtn.onclick = new Function(pAkcja);
// dodanie przycisku
elUserBtns.appendChild(nowyBtn);
}
var clickedMinor = false;
function onMinorEditClick()
{
if (this.checked && !clickedMinor)
{
dodajOpis("drobne");
clickedMinor = true;
}
}
function dodajOpis(opis)
{
var wpS = document.editform.wpSummary;
if (wpS.value != '' && wpS.value.charAt(wpS.value.length-2) != '/')
{
wpS.value += ', ' + opis
}
else
{
wpS.value += opis
}
}
$(przyciskiOpis);