Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D4FBFE00B30; Tue, 29 Mar 2016 02:07:19 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A2C83E008EE for ; Tue, 29 Mar 2016 02:07:16 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 29 Mar 2016 02:07:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,410,1455004800"; d="scan'208";a="773700603" Received: from meskola-mobl3.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.26.30]) by orsmga003.jf.intel.com with ESMTP; 29 Mar 2016 02:07:16 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Tue, 29 Mar 2016 10:07:09 +0100 Message-Id: <1459242431-17140-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [PATCH 0/2] Revert to default sorting when table column is hidden 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: Tue, 29 Mar 2016 09:07:19 -0000 Hiding a column in a table does not revert the sort order to the default one for the table: the table remains sorted by the hidden column. Modify ToasterTable and non-ToasterTable tables so that hiding a column will revert the sort order to the default. This should fix the issue for all of the tables in Toaster. Changes since eea41e44 (toaster-next) are in git://git.yoctoproject.org/poky-contrib, elliot/toaster/default_sort-9011 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/default_sort-9011 Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9011 Elliot Smith (1): toaster: fix sorting after hiding a column in build tables Michael Wood (1): toaster: ensure ToasterTable headings are reset when order by changes bitbake/lib/toaster/toastergui/static/js/table.js | 6 ++- .../lib/toaster/toastergui/templates/tasks.html | 2 +- bitbake/lib/toaster/toastergui/views.py | 50 +++++++++++----------- 3 files changed, 31 insertions(+), 27 deletions(-) -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- 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.