User:Locke/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(more logging, and fixed an attribute name)
No edit summary
Line 28: Line 28:
   --for example, data-tab-selection="April" in selector 0 plus data-tab-selection="1st" in selector 1 will match data-tab-content="April 1st"
   --for example, data-tab-selection="April" in selector 0 plus data-tab-selection="1st" in selector 1 will match data-tab-content="April 1st"
*/
*/
console.log('outside function');
 
$( function() {
$( function() {
console.log('inside function');
var tabstate = {};
var tabstate = {};
var autoTargetCtr = 0;
var autoTargetCtr = 0;
Line 39: Line 38:


   // first check if we care about this event
   // first check if we care about this event
console.log( e.type );
  if ( (tabset.data( 'tabType' ) || '').split( ' ' ).indexOf( e.type ) == -1 ) {
console.log( tabset.data( 'tabType' ) );
console.log( (tabset.data( 'tabType' ) || '').split( ' ' ) );
  if ( !$.inArray( e.type, (tabset.data( 'tabType' ) || '').split( ' ' ) ) ) {
console.log( 'dont care' );
     return;
     return;
   }
   }