BUG #29 Cleaned up whitespace that caused some browsers to not render JS

This commit is contained in:
Sean Harvey 2014-07-30 16:10:31 +12:00
parent 84c1215f91
commit aaf8d0f8b7

View File

@ -1,8 +1,7 @@
jQuery.noConflict(); jQuery.noConflict();
(function($) {     (function($) {
   $(document).ready(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 */ /* 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 */
$('#SearchForm_SearchForm_action_results').val('L'); $('#SearchForm_SearchForm_action_results').val('L');
var searchField = $('#SearchForm_SearchForm_Search'); var searchField = $('#SearchForm_SearchForm_Search');
@ -20,7 +19,6 @@ jQuery.noConflict();
}); });
if (!$.browser.msie || ($.browser.msie && (parseInt($.browser.version, 10) > 8))) { if (!$.browser.msie || ($.browser.msie && (parseInt($.browser.version, 10) > 8))) {
var searchBarButton = $("span.search-dropdown-icon"); var searchBarButton = $("span.search-dropdown-icon");
var searchBar = $('div.search-bar'); var searchBar = $('div.search-bar');
var menuButton = $("span.nav-open-button"); var menuButton = $("span.nav-open-button");
@ -84,8 +82,6 @@ jQuery.noConflict();
searchBar.slideUp(); searchBar.slideUp();
menu.slideToggle(200); menu.slideToggle(200);
}); });
} }
});
   });
}(jQuery)); }(jQuery));