From 918a17f2e686e4defa604dfa1c47ddba8dcb41d4 Mon Sep 17 00:00:00 2001 From: Arvind Date: Sat, 17 May 2014 12:03:22 +0530 Subject: [PATCH] Fixes - Keeping the text of checkbox unchanged after the user has chosen the option of showing annotation boxes. --- swtr/static/js/swtmaker.js | 4 +--- swtr/templates/index.html | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/swtr/static/js/swtmaker.js b/swtr/static/js/swtmaker.js index 715a5dd..f4d4eba 100644 --- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -277,12 +277,10 @@ return false; }, showHide: function() { - if($("input:checked").length) { - $("p").toggle(); + if($("#setbox:checked").length) { $('.annotorious-item-unfocus').css("opacity", "0.5"); } else { - $("p").toggle(); $('.annotorious-item-unfocus').css("opacity", "0"); } diff --git a/swtr/templates/index.html b/swtr/templates/index.html index 4f210e5..70732b6 100644 --- a/swtr/templates/index.html +++ b/swtr/templates/index.html @@ -36,8 +36,7 @@ + id="setcontrol">

Show annotated areas

-- 1.7.10.4