User:Locke/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 20: Line 20:
// select a tab
// select a tab
var tabselect = function( target, selector, selection ) {
var tabselect = function( target, selector, selection ) {
  console.log( selection );
 
   // set the data
   // set the data
   tabstate[target][selector] = selection;
   tabstate[target][selector] = selection;
Line 32: Line 32:
   }
   }
   content = content.join( ' ' );
   content = content.join( ' ' );
 
  console.log( content );
   // show the tabContent div
   // show the tabContent div
   $('#'+target+' div[data-tab-content="'+content+'"]').show();
   $('#'+target+' div[data-tab-content="'+content+'"]').show();