Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4E20DE007A0; Fri, 29 Aug 2014 05:49:10 -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.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CD4F4E006B3 for ; Fri, 29 Aug 2014 05:49:07 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 29 Aug 2014 05:48:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,424,1406617200"; d="scan'208";a="591681002" Received: from mavram-vostro.rb.intel.com ([10.237.105.71]) by fmsmga002.fm.intel.com with ESMTP; 29 Aug 2014 05:48:14 -0700 From: Marius Avram To: toaster@yoctoproject.org Date: Fri, 29 Aug 2014 15:51:26 +0300 Message-Id: <1409316686-30669-1-git-send-email-marius.avram@intel.com> X-Mailer: git-send-email 1.7.9.5 Subject: [PATCH 2/2] toaster: fix some code spacing issues 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: Fri, 29 Aug 2014 12:49:10 -0000 Code is related to the basetable templates files. It had mixed tabs and spaces and was miss aligned in various places, making it hard to read. Signed-off-by: Marius Avram --- .../toastergui/templates/basetable_bottom.html | 39 ++++++++++---------- .../toastergui/templates/basetable_top.html | 9 +++-- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index cbdc164..e6b9506 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -23,13 +23,14 @@ {%endif%}
- Show rows: - + Show rows: +
@@ -40,21 +41,21 @@ // we load cookies for the column display save = $.cookie('_displaycols_{{objectname}}'); - if (save != undefined) { - setting = save.split(';'); - for ( i = 0; i < setting.length; i++) { - if (setting[i].length > 0) { - splitlist = setting[i].split(':'); - id = splitlist[0], v = splitlist[1]; - if (v == 'true') { - $('.chbxtoggle#'+id).prop('checked', true); - } - else { - $('.chbxtoggle#'+id).prop('checked', false); + if (save != undefined) { + setting = save.split(';'); + for ( i = 0; i < setting.length; i++) { + if (setting[i].length > 0) { + splitlist = setting[i].split(':'); + id = splitlist[0], v = splitlist[1]; + if (v == 'true') { + $('.chbxtoggle#'+id).prop('checked', true); + } + else { + $('.chbxtoggle#'+id).prop('checked', false); + } } } } - } // load cookie for number of entries to be displayed on page pagesize = $.cookie('count'); diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 037554b..e43eb2c 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -211,10 +211,11 @@ Show rows: -- 1.7.9.5