From 4a866d9e88b03d07f0e28826a003c186849c184e Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Wed, 24 Jul 2013 15:49:26 -0400 Subject: [PATCH] Updates tab namespace Former-commit-id: 461dae32036cfe4dd8b6719a450ee1050c3c8c23 Former-commit-id: 07508ae2981fef39758b14862c23ff49771afe34 --- src/modules/tab.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/tab.js b/src/modules/tab.js index 829f460c6..98c681df5 100755 --- a/src/modules/tab.js +++ b/src/modules/tab.js @@ -1,5 +1,5 @@ /* ****************************** - Module - Simple Tab Navigation + Module - Tabs Author: Jack Lukic Notes: First Commit Aug 15, 2012 @@ -8,10 +8,10 @@ ;(function ($, window, document, undefined) { - $.fn.tabNavigation = function(parameters) { + $.fn.tab = function(parameters) { var - settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters), + settings = $.extend(true, {}, $.fn.tab.settings, parameters), $module = $(this), $tabs = $(settings.context).find(settings.selector.tabs), @@ -162,7 +162,7 @@ var pushStateAvailable = (window.history && window.history.pushState), shouldIgnoreLoad = (pushStateAvailable && settings.ignoreFirstLoad && firstLoad), - remoteContent = $.isPlainObject(settings.apiSettings), + remoteContent = (settings.auto || $.isPlainObject(settings.apiSettings) ), // only get default path if not remote content pathArray = (remoteContent && !shouldIgnoreLoad) ? module.utils.pathToArray(tabPath) @@ -572,11 +572,11 @@ }; // shortcut for tabbed content with no defined navigation - $.tabNavigation = function(settings) { - $(window).tabNavigation(settings); + $.tab = function(settings) { + $(window).tab(settings); }; - $.fn.tabNavigation.settings = { + $.fn.tab.settings = { moduleName : 'Tab Module', verbose : true,