Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CC7AAE0096D; Wed, 23 Mar 2016 03:58:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 81FC8E0092C for ; Wed, 23 Mar 2016 03:58:04 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 23 Mar 2016 03:58:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,382,1455004800"; d="scan'208";a="930091036" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga001.fm.intel.com with ESMTP; 23 Mar 2016 03:58:04 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.10]) by irsmsx105.ger.corp.intel.com ([169.254.7.35]) with mapi id 14.03.0248.002; Wed, 23 Mar 2016 10:58:00 +0000 From: "Barros Pena, Belen" To: "Smith, Elliot" Thread-Topic: [Toaster] [PATCH] toaster: ensure ToasterTable chrome is redrawn when ordering changes Thread-Index: AQHRhPBwgfArynrcg0WZJoQp8x1kTJ9m2ZyAgAACPoA= Date: Wed, 23 Mar 2016 10:57:59 +0000 Message-ID: References: <1458577001-16577-1-git-send-email-elliot.smith@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.2.160219 x-originating-ip: [10.237.224.41] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH] toaster: ensure ToasterTable chrome is redrawn when ordering changes 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: Wed, 23 Mar 2016 10:58:21 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <452CF0507E24DF4BBBD57333C7E12CCD@intel.com> Content-Transfer-Encoding: quoted-printable On 23/03/2016 10:49, "Smith, Elliot" wrote: >I think I should probably fix those tables, too, even though they're not >ToasterTables. Especially since you took the time to test all of them. Up to you really. Not to concerned about it, to be honest, although it would be nice :) Thanks! Bel=E9n > > >Elliot > > >On 23 March 2016 at 10:40, Barros Pena, Belen > wrote: > > > >On 21/03/2016 16:16, "toaster-bounces@yoctoproject.org on behalf of Elliot >Smith" elliot.smith@intel.com> wrote: > >>If a ToasterTable is ordered by an optional column and that >>column is subsequently hidden, the table ordering switches back >>to the default ordering for the table. However, the table headings >>don't update to reflect the new ordering. This is because the >>code which sets the heading weight and hides/shows the caret symbols >>only runs when the table is first loaded. >> >>Remove the guard variable which prevents the table chrome from being >>set when the table is updated. This resets formatting of the column >>headings so that the correct heading is highlighted for the ordering >>which is being used. >> >>[YOCTO #9011] > >So, tested this across Toaster (if a table is not on the list, it means >the bug doesn't apply because either only one column is sortable, or >because none of the sortable columns can be hidden using the 'edit >columns' menu). > >It seems to work in all the tables implemented with ToasterTable > >* Image recipes >* Image recipe details (packages included) >* Custom image recipe details (add | remove packages) >* Software recipes >* Machines >* Layers >* All builds >* Project builds > >If the scope of the patch is only tables implemented with ToasterTable, >then this is good to go. For the sake of completion, this is working in >the following tables *not* implemented with ToasterTable > > > >* Recipes >* Packages > >It doesn't seem to work in the following tables *not* implemented with >ToasterTable > >* Packages included >* Tasks (and by extension Time, CPU time and disk I/O since they are the >same as the tasks table). > >Thanks! > >Bel=E9n > >> >>Signed-off-by: Elliot Smith >>--- >> bitbake/lib/toaster/toastergui/static/js/table.js | 6 ------ >> 1 file changed, 6 deletions(-) >> >>diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js >>b/bitbake/lib/toaster/toastergui/static/js/table.js >>index a7e4fba..c8dcd26 100644 >>--- a/bitbake/lib/toaster/toastergui/static/js/table.js >>+++ b/bitbake/lib/toaster/toastergui/static/js/table.js >>@@ -6,7 +6,6 @@ function tableInit(ctx){ >> throw "No url supplied for retreiving data"; >> } >> >>- var tableChromeDone =3D false; >> var tableTotal =3D 0; >> >> var tableParams =3D { >>@@ -178,9 +177,6 @@ function tableInit(ctx){ >> } >> >> function setupTableChrome(tableData){ >>- if (tableChromeDone =3D=3D=3D true) >>- return; >>- >> var tableHeadRow =3D table.find("thead"); >> var editColMenu =3D >>$("#table-chrome-"+ctx.tableName).find(".editcol"); >> >>@@ -279,8 +275,6 @@ function tableInit(ctx){ >> >> editColMenu.append(toggler); >> } /* End for each column */ >>- >>- tableChromeDone =3D true; >> } >> >> /* Toggles the active state of the filter button */ >>-- >>1.9.3 >> >>--------------------------------------------------------------------- >>Intel Corporation (UK) Limited >>Registered No. 1134945 (England) >>Registered Office: Pipers Way, Swindon SN3 1RJ >>VAT No: 860 2173 47 >> >>This e-mail and any attachments may contain confidential material for >>the sole use of the intended recipient(s). Any review or distribution >>by others is strictly prohibited. If you are not the intended >>recipient, please contact the sender and delete all copies. >> > > >>-- >>_______________________________________________ >>toaster mailing list >>toaster@yoctoproject.org >>https://lists.yoctoproject.org/listinfo/toaster > > > > > > > > >--=20 >Elliot Smith >Software Engineer >Intel Open Source Technology Centre > > >