User:Locke/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
might need to pass the data to the handler; I don't have the hang of scope in js yet
No edit summary
m (might need to pass the data to the handler; I don't have the hang of scope in js yet)
Line 27: Line 27:
       $('#'+target+' div').hide();
       $('#'+target+' div').hide();
       tabstate[target][selector] = selection;
       tabstate[target][selector] = selection;
      console.log( target );
      console.log( tabstate );
       var content = tabstate[target].join( ' ' );
       var content = tabstate[target].join( ' ' );
       $('#'+target+' div[data-tab-content="'+content+'"]').show();
       $('#'+target+' div[data-tab-content="'+content+'"]').show();

Navigation menu