Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 90DABE0059A for ; Mon, 3 Feb 2014 02:44:29 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 03 Feb 2014 02:44:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,771,1384329600"; d="scan'208";a="475058140" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga002.fm.intel.com with ESMTP; 03 Feb 2014 02:44:23 -0800 Received: from irsmsx106.ger.corp.intel.com ([169.254.8.96]) by IRSMSX102.ger.corp.intel.com ([169.254.2.210]) with mapi id 14.03.0123.003; Mon, 3 Feb 2014 10:44:20 +0000 From: "Barros Pena, Belen" To: "'toaster@yoctoproject.org'" Thread-Topic: [PATCH] bitbake: toaster: initialise applied filter tooltips Thread-Index: AQHPIMzldVUfSdoRRUGyx69B1J8P6w== Date: Mon, 3 Feb 2014 10:44:20 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.9.131030 x-originating-ip: [10.237.224.79] MIME-Version: 1.0 Subject: [PATCH] bitbake: toaster: initialise applied filter tooltips X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Feb 2014 10:44:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: <87D36E7E9030B246B1ACC511D46F9DDC@intel.com> Content-Transfer-Encoding: quoted-printable Initialise the Bootstrap tooltips for any anchor tag inside a table heading with the btn-primary class applied. This effectively styles the title attribute of the applied filters to look like all other Toaster tooltips. Signed-off-by: Belen Barros --- bitbake/lib/toaster/toastergui/static/js/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index 10ac92d..7d195a2 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js @@ -17,10 +17,13 @@ $(document).ready(function() { =20 // enable popovers in any table cells that contain an anchor with the // .btn class applied - $('td > a.btn').popover({html:true, container:'body', placement: 'left'}); + $('td > a.btn').popover({html:true, container:'body', placement:'left'}); + + // enable tooltips for applied filters + $('th a.btn-primary').tooltip({container:'body', html:true, placement:'bottom'}); =20 // enable help information tooltip - $(".get-help").tooltip({ container: 'body', html: true, delay: {show: 300} }); + $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); =20 // show help bubble only on hover inside tables $(".hover-help").css("visibility","hidden"); --=20 1.7.9.5