From a77e2e3b2ff1d52373312b8aa13367c48aa177ce Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 30 Nov 2018 16:11:13 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 2 +- roojs-bootstrap.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6ce4b13780..3630417a35 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -38502,7 +38502,7 @@ Roo.bootstrap.panel.TabItem = function(config){ this.textEl = Roo.bootstrap.version == 4 ? this.el : Roo.get(this.el.dom.firstChild, true); - this.linode = Roo.get(els.el.parentNode, true); + this.pnode = this.linode = Roo.get(els.el.parentNode, true); this.status_node = Roo.bootstrap.version == 4 ? this.el : this.linode; diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index fb1b8008b5..0486c5d7ad 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1634,8 +1634,8 @@ A.appendChild(td);var E=D||this.tabTpl||false;if(!E){E=new Roo.Template(Roo.boot // Roo/bootstrap/panel/TabItem.js Roo.bootstrap.panel.TabItem=function(A){this.tabPanel=A.panel;this.id=A.id;this.disabled=false;this.text=A.text;this.loaded=false;this.closable=A.closable;this.bodyEl=Roo.get(this.tabPanel.createItemBody(this.tabPanel.bodyEl.dom,A.id));this.bodyEl.setVisibilityMode(Roo.Element.VISIBILITY); this.bodyEl.setStyle("display","block");this.bodyEl.setStyle("zoom","1");var B=this.tabPanel.createStripElements(this.tabPanel.stripEl.dom,A.text,A.closable,A.tpl);this.el=Roo.get(B.el);this.inner=Roo.get(B.inner,true);this.textEl=Roo.bootstrap.version==4?this.el:Roo.get(this.el.dom.firstChild,true); -this.linode=Roo.get(B.el.parentNode,true);this.status_node=Roo.bootstrap.version==4?this.el:this.linode;this.el.on("click",this.onTabClick,this);if(A.closable){var c=Roo.get(B.close,true);c.dom.title=this.closeText;c.addClassOnOver("close-over");c.on("click",this.closeClick,this); -}this.addEvents({"activate":true,"beforeclose":true,"close":true,"deactivate":true});this.hidden=false;Roo.bootstrap.panel.TabItem.superclass.constructor.call(this);};Roo.extend(Roo.bootstrap.panel.TabItem,Roo.util.Observable,{purgeListeners:function(){Roo.util.Observable.prototype.purgeListeners.call(this); +this.pnode=this.linode=Roo.get(B.el.parentNode,true);this.status_node=Roo.bootstrap.version==4?this.el:this.linode;this.el.on("click",this.onTabClick,this);if(A.closable){var c=Roo.get(B.close,true);c.dom.title=this.closeText;c.addClassOnOver("close-over"); +c.on("click",this.closeClick,this);}this.addEvents({"activate":true,"beforeclose":true,"close":true,"deactivate":true});this.hidden=false;Roo.bootstrap.panel.TabItem.superclass.constructor.call(this);};Roo.extend(Roo.bootstrap.panel.TabItem,Roo.util.Observable,{purgeListeners:function(){Roo.util.Observable.prototype.purgeListeners.call(this); this.el.removeAllListeners();},show:function(){this.status_node.addClass("active");this.showAction();if(Roo.isOpera){this.tabPanel.stripWrap.repaint();}this.fireEvent("activate",this.tabPanel,this);},isActive:function(){return this.tabPanel.getActiveTab()==this; },hide:function(){this.status_node.removeClass("active");this.hideAction();this.fireEvent("deactivate",this.tabPanel,this);},hideAction:function(){this.bodyEl.hide();this.bodyEl.setStyle("position","absolute");this.bodyEl.setLeft("-20000px");this.bodyEl.setTop("-20000px"); },showAction:function(){this.bodyEl.setStyle("position","relative");this.bodyEl.setTop("");this.bodyEl.setLeft("");this.bodyEl.show();},setTooltip:function(A){if(Roo.QuickTips&&Roo.QuickTips.isEnabled()){this.textEl.dom.qtip=A;this.textEl.dom.removeAttribute('title'); -- 2.39.2