From 7e81d1dc137037b460d41232081e73e78948511b Mon Sep 17 00:00:00 2001 From: Bhanu Date: Mon, 10 Mar 2014 21:07:27 +0530 Subject: [PATCH] CHeck box value toggle upon click.. --- swtr/static/js/swtmaker.js | 11 +++++++++++ swtr/templates/index.html | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/swtr/static/js/swtmaker.js b/swtr/static/js/swtmaker.js index 4cde857..e7953a5 100644 --- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -284,6 +284,17 @@ this.showSweets(); return false; }, + showHide: function() { + if($("input:checked").length) { + $("p").toggle(); + $('.annotorious-item-unfocus').css("opacity", "0.5"); + } + else { + $("p").toggle(); + $('.annotorious-item-unfocus').css("opacity", "0"); + } + + }, getSignInCredentials: function(event) { event.preventDefault(); if(swtr.who === 'Guest' && !$('#username').length) { diff --git a/swtr/templates/index.html b/swtr/templates/index.html index dd8a351..fa59935 100644 --- a/swtr/templates/index.html +++ b/swtr/templates/index.html @@ -31,7 +31,9 @@ - Show/Hide Box +
{% if url %} -- 1.7.10.4