User:Locke/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
no edit summary
mNo edit summary
No edit summary
Line 30: Line 30:
       console.log( tabstate );
       console.log( tabstate );
       console.log( tabstate[target] );
       console.log( tabstate[target] );
       var content = tabstate[target].join( ' ' );
       var content = []
      for( var key in tabstate[target] ) {
        if( tabstate[target].hasOwnProperty( key ) ) {
          content.push( tabstate[target][key] );
        }
      }
      content = content.join( ' ' );
       $('#'+target+' div[data-tab-content="'+content+'"]').show();
       $('#'+target+' div[data-tab-content="'+content+'"]').show();
     });
     });