From b32fe38ea298dbe1373ce41683da3dce4e553d53 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 16 Nov 2018 17:23:50 +0200 Subject: [PATCH 1/2] FIX Remove search field value related logic, a placeholder is used instead now --- javascript/script.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/javascript/script.js b/javascript/script.js index cffdc90..d4d026c 100644 --- a/javascript/script.js +++ b/javascript/script.js @@ -2,21 +2,8 @@ jQuery.noConflict(); (function($) { $(document).ready(function() { - /* removes text from search form on focus and replaces it on unfocus - if text is entered then it does not get replaced with default on unfocus */ + // L is a magnifying glass icon in the font $('#SearchForm_SearchForm_action_results').val('L'); - var searchField = $('#SearchForm_SearchForm_Search'); - var default_value = searchField.val(); - searchField.focus(function() { - $(this).addClass('active'); - if(searchField.val() == default_value) { - searchField.val(''); - } - }); - searchField.blur(function() { - if(searchField.val() == '') { - searchField.val(default_value); - } - }); if (!$.browser.msie || ($.browser.msie && (parseInt($.browser.version, 10) > 8))) { var searchBarButton = $("span.search-dropdown-icon"); From 30a6fca74a7872a457fe74edbe47a1892d127177 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 1 Aug 2022 10:01:40 +1200 Subject: [PATCH 2/2] MNT Standardise modules --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83efb15..189644e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Using the Simple theme - * Copy the theme into the `themes/` directory of your SilverStripe project. If you've named it correctly, there should be a directory called `themes/simple/templates`. + * Copy the theme into the `themes/` directory of your Silverstripe project. If you've named it correctly, there should be a directory called `themes/simple/templates`. * Add the following to your `mysite/_config.php` file. Remove any existing `SSViewer::set_theme` lines.