Changes

Jump to navigation Jump to search
no edit summary
Line 2: Line 2:     
mw.notify( "popup.js")
 
mw.notify( "popup.js")
 +
 +
console.log( "it's a controller" )
 +
var $title2 = $( '.wikibase-title' ),
 +
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
      Line 25: Line 29:  
// check if we have controller id constructed from wbEntity  
 
// check if we have controller id constructed from wbEntity  
 
if( dive( dive( obj, wbEStruct["instanceOfRelations"])[i] , wbEStruct["IDPropLoc"])[wbEStruct["IDName"]] === controller_item_id ) {
 
if( dive( dive( obj, wbEStruct["instanceOfRelations"])[i] , wbEStruct["IDPropLoc"])[wbEStruct["IDName"]] === controller_item_id ) {
console.log( "it's a controller" )
  −
var $title2 = $( '.wikibase-title' ),
  −
qId = $title2.find( '.wikibase-title-id' ).text().replace( /[()]/g, '' );
   
var api = new mw.Api();
 
var api = new mw.Api();
 
                                 api.get( {
 
                                 api.get( {

Navigation menu