From 3ca2d828bc7988fdfa82868b8ff5df0be21ec87f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 4 Jan 2021 13:37:58 +0800 Subject: [PATCH] roojs-bootstrap.js roojs-bootstrap-debug.js --- roojs-bootstrap-debug.js | 4 +++- roojs-bootstrap.js | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index b4c006f9c2..88c84fe6b0 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -4523,7 +4523,9 @@ Roo.extend(Roo.bootstrap.Modal, Roo.bootstrap.Component, { }, toggleHeaderInput : function(is_edit) { - + if (!this.editableTitle) { + return; // not editable. + } if (is_edit && this.is_header_editing) { return; // already editing.. } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 1422e330a3..407e210a87 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -188,10 +188,10 @@ else{this.el.removeClass('show');this.el.dom.style.display='';Roo.get(document.b ,{html:A});b.xns=b.xns||Roo.bootstrap;b.xtype=b.xtype||'Button';if(typeof(b.listeners)=='undefined'){b.listeners={click:cb.createDelegate(this)};}var B=Roo.factory(b);B.render(this.getButtonContainer());return B;},setDefaultButton:function(A){},resizeTo:function(w,h){this.dialogEl.setWidth(w); var A=this.headerEl.getHeight()+this.footerEl.getHeight()+60;this.bodyEl.setHeight(h-A);this.fireEvent('resize',this);},setContentSize:function(w,h){},onButtonClick:function(A,e){this.fireEvent('btnclick',A.name,e);},setTitle:function(A){this.titleEl.dom.innerHTML=A; this.title=A;},setBody:function(A){this.bodyEl.dom.innerHTML=A;},applyBody:function(A){if(!this.tmpl){Roo.log("Error - using apply Body without a template");}this.tmpl.overwrite(this.bodyEl,A);},getChildHeight:function(A){if(!A||A.length==0){return 0;}var B=0; -for(var i=0;i