Compare commits

...

6 Commits

Author SHA1 Message Date
Sabina Talipova 88fe457a90 Merge 3.2 into master 2022-12-16 11:58:33 +13:00
Steve Boyd d1a0e9ac7c Merge branch '3.1' into 3.2 2022-08-02 18:41:41 +12:00
Guy Sartorelli ac99fc50e6
Merge pull request #71 from creative-commoners/pulls/3.1/standardise-modules
MNT Standardise modules
2022-08-02 14:35:53 +12:00
Steve Boyd 30a6fca74a MNT Standardise modules 2022-08-01 10:01:40 +12:00
Robbie Averill 179fe14554
Merge pull request #62 from creative-commoners/pulls/3.2/remove-search-default
FIX Remove search field value related logic, a placeholder is used instead now
2018-11-26 11:51:13 +01:00
Robbie Averill b32fe38ea2 FIX Remove search field value related logic, a placeholder is used instead now 2018-11-16 17:23:50 +02:00
2 changed files with 2 additions and 15 deletions

View File

@ -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.

View File

@ -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 = $("button.search-dropdown-icon");