diff --git a/CHANGES.md b/CHANGES.md index e16bc7c..f46ece8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,6 @@ ### 0.16.0 (2018-xx-xx xx:xx:xx UTC) +* Change search show result 'exists in db' text into a link to display show page * Change increase namecache size and fix deleting items from it when at capacity * Change improve security with cross-site request forgery (xsrf) protection on web forms * Change improve security by sending header flags httponly and secure with cookies diff --git a/gui/slick/js/newShow.js b/gui/slick/js/newShow.js index 4c1cc1c..708e4e7 100644 --- a/gui/slick/js/newShow.js +++ b/gui/slick/js/newShow.js @@ -85,7 +85,7 @@ $(document).ready(function () { Aired: 8, Network: 9, Genre: 10, Overview: 11, RelSort: 12, DateSort: 13, AzSort: 14, ImgUrl: 15 }; $.each(data.results, function (index, item) { - attrs = (!0 === item[result.isInDB] ? ' disabled="disabled"' : (!0 === checked ? '' : ' checked')); + attrs = (!1 !== item[result.isInDB] ? ' disabled="disabled"' : (!0 === checked ? '' : ' checked')); checked = (' checked' === attrs) ? !0 : checked; rowType = (0 == row % 2 ? '' : ' alt'); row++; @@ -102,7 +102,7 @@ $(document).ready(function () { srcState = [ null === item[result.SrcName] ? '' : item[result.SrcName], - !1 === item[result.isInDB] ? '' : 'exists in db'] + !1 === item[result.isInDB] ? '' : 'exists in db'] .join(' - ').replace(/(^[\s-]+|[\s-]+$)/, ''); resultStr += '
' + '