Browse Source

Updates tab namespace

Former-commit-id: 461dae3203
Former-commit-id: 07508ae298
pull/258/head
Jack Lukic 11 years ago
parent
commit
4a866d9e88
1 changed files with 7 additions and 7 deletions
  1. 14
      src/modules/tab.js

14
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,

Loading…
Cancel
Save