Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3609FE00752; Mon, 31 Oct 2016 10:18:06 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.192.172 listed in list.dnswl.org] * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.192.172 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pf0-f172.google.com (mail-pf0-f172.google.com [209.85.192.172]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 25673E00724 for ; Mon, 31 Oct 2016 10:18:02 -0700 (PDT) Received: by mail-pf0-f172.google.com with SMTP id 189so26157067pfz.3 for ; Mon, 31 Oct 2016 10:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=4RTisBlENJu2/sRWpXJ5zRVrwqNcbQEK+ZB6nqL+I+A=; b=Jpet1tOOABT/KsmKKnlDlRDDxWcBRMU2O0CY1NPPeIQsMvuGay33VXUZsJ/fpnriWU xhNfmTnZfFUXUTut2Q0UjdhFUHhQcQWaNud82BkIZrILbbRolj+0MouPlViyai6ZYjvP 4+oYYybFmah2CdJiEvSc4MrLQrPLF4Z1MRetPw09vtl8gx2mkJCkimvMkje3JCLyhfGw lG6IG4wXsMkuZCK/AAnvkplu5uNVnGWRDLInOSLQy58TR+HE0c/YeaNBE+gkEUSiKIyX AbESsIYJvmeaYf0VBjw0Uhu9uZGiv3Q0V4fnQRsUSDXsbft5kZjWO8+ntJdls0nQAaNC 9h4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4RTisBlENJu2/sRWpXJ5zRVrwqNcbQEK+ZB6nqL+I+A=; b=d0bS0rri5JgPnNW7sbTBPEoGzTXZ/mHaRH9JOL1QmYWymLeOQhwUMev+Jzoh5Csjqm ZE8Jz9+F4QV49+xuFkUwkTe4+BjKL1ggVBO4qw/MXqPB/4N+ubW0/Tz4gYsmD5GONaT4 nps8JNK+nvCT1rEkBJZR9By2ZL3Bh+zjCTVfoZgYuj9OkoyoWj7DWoi3z3vZL7H4Y3l+ mijH5Z3uNwODGM84U3sPXve/qzvi4M67qe0dw4j15K05Pq9iJTiYqeotED/KO9lwGKUd ZmFDoY4E2tk9YELWPeROG5auxZPyX4oheO62qXygujICgz4xtmLsYVFvdXhmvQ21laCn KPPQ== X-Gm-Message-State: ABUngvdSZs5bxfuInL5ViFWOqM0F+2h7qCLktOqP+f11ROquPOP9rGxPSgB7gVJ7IM61mfTo X-Received: by 10.98.207.195 with SMTP id b186mr8946378pfg.40.1477934282145; Mon, 31 Oct 2016 10:18:02 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr04-ext.fm.intel.com. [192.55.55.39]) by smtp.gmail.com with ESMTPSA id e7sm36858838pfa.65.2016.10.31.10.18.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 31 Oct 2016 10:18:01 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 31 Oct 2016 17:17:57 +0000 Message-Id: <1477934277-12578-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [PATCH] toaster: customrecipejs Eat click even on a link if disabled 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, 31 Oct 2016 17:18:06 -0000 Eat the click event on the download recipe link if it's disabled. See http://getbootstrap.com/css/#forms-disabled-fieldsets and a link caveat. [YOCTO #10151] Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/customrecipe.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js index 9ea9602..8b1c190 100644 --- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js +++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js @@ -312,5 +312,11 @@ function customRecipePageInit(ctx) { }); }); + /* Stop the download link from working if it is in disabled state + * http://getbootstrap.com/css/#forms-disabled-fieldsets + */ + $("a[disabled=disabled]").click(function(e){ + e.preventDefault(); + }); } -- 2.7.4