Atšķirības starp "MediaWiki:Common.js" versijām

No ''Vēsture''
Pārlēkt uz: navigācija, meklēt
(Jauna lapa: Any JavaScript here will be loaded for all users on every page load.: if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://ww...)
 
1. rindiņa: 1. rindiņa:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
if (mwCustomEditButtons) {
+
if (mw.toolbar) {
   mwCustomEditButtons[mwCustomEditButtons.length] = {
+
   mw.toolbar.addButton({
 
     "imageFile": "http://www.vesture.eu/skins/common/images/Button_redirect.png",
 
     "imageFile": "http://www.vesture.eu/skins/common/images/Button_redirect.png",
 
     "speedTip": "Redirect",
 
     "speedTip": "Redirect",
 
     "tagOpen": "#REDIRECT [[",
 
     "tagOpen": "#REDIRECT [[",
 
     "tagClose": "]]",
 
     "tagClose": "]]",
     "sampleText": "Raksts, uz kuru pāradresē"};
+
     "sampleText": "Raksts, uz kuru pāradresē"});
 
   }
 
   }

Versija, kas saglabāta 2017. gada 2. augusts, plkst. 15.58

/* Any JavaScript here will be loaded for all users on every page load. */

if (mw.toolbar) {
   mw.toolbar.addButton({
     "imageFile": "http://www.vesture.eu/skins/common/images/Button_redirect.png",
     "speedTip": "Redirect",
     "tagOpen": "#REDIRECT [[",
     "tagClose": "]]",
     "sampleText": "Raksts, uz kuru pāradresē"});
  }