}
return cfg;
- },
-
- /**
- * sets the active Navigation item
- * @param {Roo.bootstrap.NavProgressItem} the new current navitem
- */
- setActiveItem : function(item)
- {
- var prev = false;
- Roo.each(this.items, function(v){
- if (v == item) {
- return ;
- }
- if (v.isActive()) {
- v.setActive(false, true);
- prev = v;
-
- }
-
- });
-
- item.setActive(true, true);
- this.fireEvent('changed', this, item, prev);
- },
-
- /**
- * gets the active Navigation item
- * @return {Roo.bootstrap.NavProgressItem} the current navitem
- */
- getActive : function()
- {
- var active = false;
-
- Roo.each(this.items, function(v){
-
- if (!v.isActive()) {
- return;
- }
-
- active = v;
- return false;
-
- });
-
- return active;
- },
-
- indexOfNav : function(item)
- {
- var index = false;
-
- Roo.each(this.items, function(v,i){
-
- if (v != item) {
- return;
- }
-
- index = i;
- return false
- });
-
- return index;
- },
-
- /**
- * adds a Navigation item
- * @param {Roo.bootstrap.NavProgressItem} the NavProgressItem to add
- */
- addItem : function(cfg)
- {
- var cn = new Roo.bootstrap.NavProgressItem(cfg);
- this.register(cn);
- cn.parentId = this.id;
- cn.onRender(this.el, null);
- return cn;
- },
-
- /**
- * register a Navigation item
- * @param {Roo.bootstrap.NavItem} the navitem to add
- */
- register : function(item)
- {
- this.items.push(item);
- item.navId = this.navId;
-
- },
-
- /**
- * clear all the Navigation item
- */
-
- clearAll : function()
- {
- this.items = [];
- this.el.dom.innerHTML = '';
- },
-
- getNavItem: function(tabId)
- {
- var ret = false;
- Roo.each(this.items, function(e) {
- if (e.tabId == tabId) {
- ret = e;
- return false;
- }
- return true;
-
- });
- return ret;
- },
-
- setActiveNext : function()
- {
- var i = this.indexOfNav(this.getActive());
-
- if (i > this.items.length) {
- return;
- }
-
- this.setActiveItem(this.items[i+1]);
- },
-
- setActivePrev : function()
- {
- var i = this.indexOfNav(this.getActive());
-
- if (i < 1) {
- return;
- }
-
- this.setActiveItem(this.items[i-1]);
- },
-
- clearWasActive : function(except) {
- Roo.each(this.items, function(e) {
- if (e.tabId != except.tabId && e.was_active) {
- e.was_active = false;
- return false;
- }
- return true;
-
- });
- },
-
- getWasActive : function ()
- {
- var r = false;
- Roo.each(this.items, function(e) {
- if (e.was_active) {
- r = e;
- return false;
- }
- return true;
-
- });
- return r;
}
+//
+// /**
+// * sets the active Navigation item
+// * @param {Roo.bootstrap.NavProgressItem} the new current navitem
+// */
+// setActiveItem : function(item)
+// {
+// var prev = false;
+// Roo.each(this.items, function(v){
+// if (v == item) {
+// return ;
+// }
+// if (v.isActive()) {
+// v.setActive(false, true);
+// prev = v;
+//
+// }
+//
+// });
+//
+// item.setActive(true, true);
+// this.fireEvent('changed', this, item, prev);
+// },
+//
+// /**
+// * gets the active Navigation item
+// * @return {Roo.bootstrap.NavProgressItem} the current navitem
+// */
+// getActive : function()
+// {
+// var active = false;
+//
+// Roo.each(this.items, function(v){
+//
+// if (!v.isActive()) {
+// return;
+// }
+//
+// active = v;
+// return false;
+//
+// });
+//
+// return active;
+// },
+//
+// indexOfNav : function(item)
+// {
+// var index = false;
+//
+// Roo.each(this.items, function(v,i){
+//
+// if (v != item) {
+// return;
+// }
+//
+// index = i;
+// return false
+// });
+//
+// return index;
+// },
+//
+// /**
+// * adds a Navigation item
+// * @param {Roo.bootstrap.NavProgressItem} the NavProgressItem to add
+// */
+// addItem : function(cfg)
+// {
+// var cn = new Roo.bootstrap.NavProgressItem(cfg);
+// this.register(cn);
+// cn.parentId = this.id;
+// cn.onRender(this.el, null);
+// return cn;
+// },
+//
+// /**
+// * register a Navigation item
+// * @param {Roo.bootstrap.NavItem} the navitem to add
+// */
+// register : function(item)
+// {
+// this.items.push(item);
+// item.navId = this.navId;
+//
+// },
+//
+// /**
+// * clear all the Navigation item
+// */
+//
+// clearAll : function()
+// {
+// this.items = [];
+// this.el.dom.innerHTML = '';
+// },
+//
+// getNavItem: function(tabId)
+// {
+// var ret = false;
+// Roo.each(this.items, function(e) {
+// if (e.tabId == tabId) {
+// ret = e;
+// return false;
+// }
+// return true;
+//
+// });
+// return ret;
+// },
+//
+// setActiveNext : function()
+// {
+// var i = this.indexOfNav(this.getActive());
+//
+// if (i > this.items.length) {
+// return;
+// }
+//
+// this.setActiveItem(this.items[i+1]);
+// },
+//
+// setActivePrev : function()
+// {
+// var i = this.indexOfNav(this.getActive());
+//
+// if (i < 1) {
+// return;
+// }
+//
+// this.setActiveItem(this.items[i-1]);
+// },
+//
+// clearWasActive : function(except) {
+// Roo.each(this.items, function(e) {
+// if (e.tabId != except.tabId && e.was_active) {
+// e.was_active = false;
+// return false;
+// }
+// return true;
+//
+// });
+// },
+//
+// getWasActive : function ()
+// {
+// var r = false;
+// Roo.each(this.items, function(e) {
+// if (e.was_active) {
+// r = e;
+// return false;
+// }
+// return true;
+//
+// });
+// return r;
+// }
});
-
-Roo.apply(Roo.bootstrap.NavProgressBar, {
-
- groups: {},
- /**
- * register a Navigation Group
- * @param {Roo.bootstrap.NavGroup} the navgroup to add
- */
- register : function(bar)
- {
- this.groups[bar.navId] = bar;
-
- },
- /**
- * fetch a Navigation Bar based on the navigation ID
- * @param {string} the nav bar to add
- * @returns {Roo.bootstrap.NavProgressBar} the nav bar
- */
- get: function(navId)
- {
- if (typeof(this.groups[navId]) == 'undefined') {
- return false;
- }
-
- return this.groups[navId] ;
- }
-
-});
+//
+//Roo.apply(Roo.bootstrap.NavProgressBar, {
+//
+// groups: {},
+// /**
+// * register a Navigation Group
+// * @param {Roo.bootstrap.NavGroup} the navgroup to add
+// */
+// register : function(bar)
+// {
+// this.groups[bar.navId] = bar;
+//
+// },
+// /**
+// * fetch a Navigation Bar based on the navigation ID
+// * @param {string} the nav bar to add
+// * @returns {Roo.bootstrap.NavProgressBar} the nav bar
+// */
+// get: function(navId)
+// {
+// if (typeof(this.groups[navId]) == 'undefined') {
+// return false;
+// }
+//
+// return this.groups[navId] ;
+// }
+//
+//});
\ No newline at end of file