MediaWiki:Onlyifediting.js: различия между версиями

Материал из RSB-Doc
Перейти к навигации Перейти к поиску
Eme (обсуждение | вклад)
Нет описания правки
Eme (обсуждение | вклад)
Нет описания правки
Строка 2: Строка 2:
             + '/index.php?title=MediaWiki:Wikificator.js'  
             + '/index.php?title=MediaWiki:Wikificator.js'  
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
/*
  document.write('<script type="text/javascript" src="'  
  document.write('<script type="text/javascript" src="'  
             + '/extensions/CategoryTree/CategoryTree.js"></script>');
             + '/extensions/CategoryTree/CategoryTree.js"></script>');
 
*/
function marque_tab()
function marque_tab()
{
{
Строка 31: Строка 31:
}
}


 
/*
function ShowPopUpCategoryList()
function ShowPopUpCategoryList()
{
{
Строка 43: Строка 43:
             , ShowPopUpGetSettings );
             , ShowPopUpGetSettings );
}
}
 
*/
addOnloadHook(marque_tab);
addOnloadHook(marque_tab);
addOnloadHook(ShowPopUpCategoryList);
/*addOnloadHook(ShowPopUpCategoryList);*/

Версия от 16:15, 19 декабря 2007

 document.write('<script type="text/javascript" src="' 
             + '/index.php?title=MediaWiki:Wikificator.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*
 document.write('<script type="text/javascript" src="' 
             + '/extensions/CategoryTree/CategoryTree.js"></script>');
*/
function marque_tab()
{
var toolbar = document.getElementById('toolbar');
if (!toolbar) return false;

var textbox = document.getElementById('wpTextbox1');
if (!textbox) return false;

if (!document.selection && textbox.selectionStart == null) return false;

var image2 = document.createElement('img');
image2.width = 69;
image2.height = 22;
image2.src = '/images/d/d1/Button-wikifikator.png';
image2.border = 0;
image2.alt = 'Викификатор';
image2.title = 'Викификатор';
image2.style.cursor = 'pointer';
image2.onclick = function() {
  Wikify();
  return false;
}
toolbar.appendChild(image2);
}

/*
function ShowPopUpCategoryList()
{

}

function AddButtonsOnToolBar()
{
AddFuncButton( 'http://transfer/skins/common/images/button_insert_category.bmp'
             , 'Категория'
             , ShowPopUpGetSettings );
}
*/
addOnloadHook(marque_tab);
/*addOnloadHook(ShowPopUpCategoryList);*/