From: benny Date: Fri, 20 Jul 2018 07:06:36 +0000 (+0800) Subject: cmmit X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=520f27854c2b52c36d47f7eccc92ab260a911c8b cmmit --- diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 2010b9781d..17695dbabd 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -351,6 +351,15 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { }, + /** + * get the current active state + * @return {boolean} true if it's active + */ + isActive : function() + { + return this.el.hasClass('active'); + }, + } setText : function(str) { this.el.select('.roo-button-text',true).first().dom.innerHTML = str; diff --git a/css/button.css b/css/button.css index 6160d3604c..d944cb86cd 100644 --- a/css/button.css +++ b/css/button.css @@ -167,13 +167,7 @@ } -.x-btn-text-icon .x-btn-center .x-btn-text-no-padding -{ - background-position:0 2px; - background:none no-repeat scroll 0 0 transparent; - /* padding : 3px 0 2px 18px; */ -} /* -------------------------- BUTTON WITH MENUS -------------------------- */ button.x-btn-menu-arrow-el {