From 6063a5920b3647df0f4e9fc238835d96e6b7082a Mon Sep 17 00:00:00 2001 From: "jason.wall" Date: Fri, 26 Dec 2014 14:27:52 -0500 Subject: [PATCH] BUGFIX: display and session state issues --- css/bible.css | 4 +--- js/common.js | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/css/bible.css b/css/bible.css index 8139e45e..744b058c 100644 --- a/css/bible.css +++ b/css/bible.css @@ -34,12 +34,9 @@ a:hover { } #searchvalue {font-family: georgia;} #searchresults { - xmargin-right: 10px; padding: 0 10px 10px 10px; overflow:scroll; height: 100%; - margin-right: 16px; - margin-left: 16px; background: #eee; } #searchresults ul { @@ -125,6 +122,7 @@ a:hover { { display: block; padding-left: 55px; + width: 100%; } #main .block { diff --git a/js/common.js b/js/common.js index 9bb3a7fc..ce68b212 100644 --- a/js/common.js +++ b/js/common.js @@ -14,7 +14,7 @@ var Util = { }, RemoveResult: function(e) { var ref = $(e.target).parent().parent().children(".resultbody").children("h2").children("a").text(); - delete CurrentReferences[ref.toLowerCase()]; + delete CurrentReferences[ref.trim().toLowerCase()]; $(e.target).parent().parent().remove(); Settings.SaveResults(); }, @@ -128,7 +128,7 @@ var Search = function(sv) { var r = Bible.GetPassage(myref.book, myref.startchapter, myref.endchapter, myref.startverse, myref.endverse); Bible.DisplayPassage(r.cs, myref, r.testament); - CurrentReferences[ref.toString().toLowerCase()] = true; + CurrentReferences[myref.toString().toLowerCase()] = true; } } }