Changes

Jump to navigation Jump to search
no edit summary
Line 12: Line 12:     
   'use strict';
 
   'use strict';
   var messages;
+
   var messages, entityId = mw.config.get('wbEntityId'), api = new mw.Api();
  var entityId = mw.config.get( 'wbEntityId' );
  −
  var api = new mw.Api();
  −
  console.log("Got API "+ entityId);
   
   messages = (function () {
 
   messages = (function () {
 
     var translations = {
 
     var translations = {
Line 863: Line 860:  
     this.entityId = config.entityId;
 
     this.entityId = config.entityId;
 
   }
 
   }
  console.log("about to call OO.inheritClass")
   
   OO.inheritClass(MergeDialog, OO.ui.ProcessDialog);
 
   OO.inheritClass(MergeDialog, OO.ui.ProcessDialog);
   console.log("called OO.inheritClass")
+
    
 
   
   MergeDialog.static.name = 'mergeDialog';
 
   MergeDialog.static.name = 'mergeDialog';
 
   MergeDialog.static.title = messages.mergeWizard;
 
   MergeDialog.static.title = messages.mergeWizard;
Line 889: Line 884:  
     }
 
     }
 
   ];
 
   ];
  console.log("MergeDialog", MergeDialog)
   
    
 
    
 
   /**
 
   /**
Line 1,121: Line 1,115:  
   }
 
   }
 
    
 
    
  console.log("About to initialize")
  −
  console.log("entityId", entityId)
  −
  console.log("wgNamespaceNumber", mw.config.get('wgNamespaceNumber'))
  −
  console.log("Action", mw.config.get('wgAction'))
   
   // Initialization
 
   // Initialization
 
   if (entityId !== null &&
 
   if (entityId !== null &&
 
       [120, 146].indexOf(mw.config.get('wgNamespaceNumber')) !== -1 &&
 
       [120, 146].indexOf(mw.config.get('wgNamespaceNumber')) !== -1 &&
 
       mw.config.get('wgAction') === 'view') {
 
       mw.config.get('wgAction') === 'view') {
    console.log("Initializing")
   
     $(window).on('focus storage', function () {
 
     $(window).on('focus storage', function () {
 
       $('#ca-merge-queue-process').remove();
 
       $('#ca-merge-queue-process').remove();

Navigation menu