From d4283fca3e02cf6df27ae875611963f04f8328ec Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 2 Sep 2014 00:32:46 -0500 Subject: [PATCH] Better grouping for actions. --- static/script.js | 10 ++++------ templates/index.mako | 10 +++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/static/script.js b/static/script.js index 99e007f..6a07551 100644 --- a/static/script.js +++ b/static/script.js @@ -90,14 +90,12 @@ function delete_cookie(name) { $(document).ready(function() { $("#action-search").change(function() { - $("#cv-cb-engine").prop("disabled", false); - $("#cv-cb-links").prop("disabled", false); - $("#url-box").prop("disabled", true); + $(".cv-search").prop("disabled", false); + $(".cv-compare").prop("disabled", true); }); $("#action-compare").change(function() { - $("#cv-cb-engine").prop("disabled", true); - $("#cv-cb-links").prop("disabled", true); - $("#url-box").prop("disabled", false); + $(".cv-search").prop("disabled", true); + $(".cv-compare").prop("disabled", false); }); if ($("#action-search" ).is(":checked")) $("#action-search" ).change(); if ($("#action-compare").is(":checked")) $("#action-compare").change(); diff --git a/templates/index.mako b/templates/index.mako index 0256362..fff7d6e 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -105,11 +105,11 @@ - - - + + + - + @@ -119,7 +119,7 @@ -