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
1 changed files with 23 additions and 27 deletions

View File

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