Deutschland United States United Kingdom
ContentLion - Open Source CMS

Compare Revisions

Ignore whitespace Rev 4 → Rev 5

/trunk/js/tabber.js
30,7 → 30,7
SOFTWARE.
==================================================*/
 
function tabberObj(argsObj)
function Plugin_Tabber_tabberObj(argsObj)
{
var arg; /* name of an argument to override */
 
136,7 → 136,7
--------------------------------------------------*/
 
 
tabberObj.prototype.init = function(e)
Plugin_Tabber_tabberObj.prototype.init = function(e)
{
/* Set up the tabber interface.
 
298,7 → 298,7
};
 
 
tabberObj.prototype.navClick = function(event)
Plugin_Tabber_tabberObj.prototype.navClick = function(event)
{
/* This method should only be called by the onClick event of an <A>
element, in which case we will determine which tab was clicked by
352,7 → 352,7
};
 
 
tabberObj.prototype.tabHideAll = function()
Plugin_Tabber_tabberObj.prototype.tabHideAll = function()
{
var i; /* counter */
 
363,7 → 363,7
};
 
 
tabberObj.prototype.tabHide = function(tabberIndex)
Plugin_Tabber_tabberObj.prototype.tabHide = function(tabberIndex)
{
var div;
 
382,7 → 382,7
};
 
 
tabberObj.prototype.tabShow = function(tabberIndex)
Plugin_Tabber_tabberObj.prototype.tabShow = function(tabberIndex)
{
/* Show the tabberIndex tab and hide all the other tabs */
 
410,7 → 410,7
return this;
};
 
tabberObj.prototype.navSetActive = function(tabberIndex)
Plugin_Tabber_tabberObj.prototype.navSetActive = function(tabberIndex)
{
/* Note: this method does *not* enforce the rule
that only one nav item can be active at a time.
423,7 → 423,7
};
 
 
tabberObj.prototype.navClearActive = function(tabberIndex)
Plugin_Tabber_tabberObj.prototype.navClearActive = function(tabberIndex)
{
/* Note: this method does *not* enforce the rule
that one nav should always be active.
455,7 → 455,7
if (!tabberArgs) { tabberArgs = {}; }
 
/* Create a tabber object so we can get the value of classMain */
tempObj = new tabberObj(tabberArgs);
tempObj = new Plugin_Tabber_tabberObj(tabberArgs);
 
/* Find all DIV elements in the document that have class=tabber */
 
469,7 → 469,7
/* Now tabify the DIV */
tabberArgs.div = divs[i];
divs[i].tabber = new tabberObj(tabberArgs);
divs[i].tabber = new Plugin_Tabber_tabberObj(tabberArgs);
}
}