From patchwork Fri Jun 28 11:53:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stevan Radakovic X-Patchwork-Id: 18181 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A986525E2D for ; Fri, 28 Jun 2013 11:53:19 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bv4sf1198092qab.2 for ; Fri, 28 Jun 2013 04:53:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to :mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state:x-original-sender :x-original-authentication-results:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=nER8SlxYgnQ/ftCnbjJlzdxZvBS4epAJ8mbpZFzJkdE=; b=cYOTp5Gri8d1x9e6fI3Z3lXAUkI4Z1Ch3ojrIX6xOVcgvkWy4R+oDIrhDlApuSjJYF tyoemv/EkxKAZX/Tml7tu5iaq0weWtChv3mLuo3Hjn2aeQuk2s9ScD0KbAq0jyo3S9d5 exrlIkTYCyhSDd14plE6nUmdb4THWcbbp5E3poSMvZE3ZPhT6c+lXzdn9yVR9p/jTql1 IKfJus48bLG9jZrjz0UAMtCv8k0C274PDvczk6w67hBJ9rL6m5vLBbKZyhkViR8UXS2T z7IvRmTaXQMGjWj51wuIFVna4/UnC8WtQMFxun7A06E+DwoM/1OeycgduwkMrK44IbOa GkZA== X-Received: by 10.224.200.202 with SMTP id ex10mr13421191qab.8.1372420399087; Fri, 28 Jun 2013 04:53:19 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.132 with SMTP id 4ls1178025qee.90.gmail; Fri, 28 Jun 2013 04:53:18 -0700 (PDT) X-Received: by 10.52.162.42 with SMTP id xx10mr4432535vdb.116.1372420398953; Fri, 28 Jun 2013 04:53:18 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id vl1si1900902veb.94.2013.06.28.04.53.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Jun 2013 04:53:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id p13so1620945vbe.14 for ; Fri, 28 Jun 2013 04:53:18 -0700 (PDT) X-Received: by 10.58.251.144 with SMTP id zk16mr5310856vec.37.1372420398881; Fri, 28 Jun 2013 04:53:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp186571veb; Fri, 28 Jun 2013 04:53:18 -0700 (PDT) X-Received: by 10.194.235.161 with SMTP id un1mr9643481wjc.6.1372420397984; Fri, 28 Jun 2013 04:53:17 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id uu4si2603421wjc.89.2013.06.28.04.53.17 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 28 Jun 2013 04:53:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1UsXEr-00087D-Do for ; Fri, 28 Jun 2013 11:53:17 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 5C524EB2FA for ; Fri, 28 Jun 2013 11:53:17 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 249 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-scheduler/trunk] Rev 249: Remove empty field validation from 'Submit Job' page. Message-Id: <20130628115317.30508.63897.launchpad@ackee.canonical.com> Date: Fri, 28 Jun 2013 11:53:17 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: list X-Generated-By: Launchpad (canonical.com); Revision="16692"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: d2ffe498526328a131874272d9ac31f5e016b8c9 X-Gm-Message-State: ALoCoQkRRAKDU5W6olIE4vVa+Cx1xz5Q54pJhEwfSCGtZiLCXlUG3+rDhd+YF2zvYdI8CK8LT4GC X-Original-Sender: noreply@launchpad.net X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Merge authors: Stevan Radaković (stevanr) Related merge proposals: https://code.launchpad.net/~stevanr/lava-scheduler/remove-empty-field-validation/+merge/172009 proposed by: Stevan Radaković (stevanr) review: Approve - Stevan Radaković (stevanr) ------------------------------------------------------------ revno: 249 [merge] committer: Stevan Radakovic branch nick: trunk timestamp: Fri 2013-06-28 13:52:54 +0200 message: Remove empty field validation from 'Submit Job' page. modified: lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js --- lp:lava-scheduler https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk You are subscribed to branch lp:lava-scheduler. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription === modified file 'lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js' --- lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js 2013-06-27 11:51:21 +0000 +++ lava_scheduler_app/static/lava_scheduler_app/js/job-submit.js 2013-06-28 11:44:54 +0000 @@ -19,10 +19,12 @@ validate_input = function(json_input) { - if ($("#json-input").val().split("\n").length == 1) { - load_url(); - } else { - validate_job_data(json_input); + if ($("#json-input").val() != "") { + if ($("#json-input").val().split("\n").length == 1) { + load_url(); + } else { + validate_job_data(json_input); + } } }