From 8241fef1aae94b4881889ad1fc99a64022428dc8 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 16 Feb 2015 17:16:30 +0800 Subject: [PATCH] Roo/bootstrap/dash/TabBox.js --- Roo/bootstrap/dash/TabBox.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Roo/bootstrap/dash/TabBox.js b/Roo/bootstrap/dash/TabBox.js index 570401d04d..e9d7398826 100644 --- a/Roo/bootstrap/dash/TabBox.js +++ b/Roo/bootstrap/dash/TabBox.js @@ -164,19 +164,19 @@ Roo.apply(Roo.bootstrap.dash.TabBox, { boxes: {}, /** - * register a Navigation Group - * @param {Roo.bootstrap.NavGroup} the navgroup to add + * register a TabBox + * @param {Roo.bootstrap.dash.TabBox} the box to add */ - register : function(navgrp) + register : function(box) { - this.groups[navgrp.navId] = navgrp; + this.boxes[box.name] = box; }, /** - * fetch a Navigation Group based on the navigation ID + * fetch a box based on the box name * if one does not exist , it will get created. - * @param {string} the navgroup to add - * @returns {Roo.bootstrap.NavGroup} the navgroup + * @param {string} the box name + * @returns {Roo.bootstrap.dash.TabBox} the box */ get: function(navId) { if (typeof(this.groups[navId]) == 'undefined') { -- 2.39.2