diff --git a/src/main/webapp/js/help.js b/src/main/webapp/js/help.js index b1b96c2e8de719af24380a5d785e5fd01ea74c65..04356c40fc3ce82c70b103843c321cc747724036 100644 --- a/src/main/webapp/js/help.js +++ b/src/main/webapp/js/help.js @@ -11,9 +11,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; }); diff --git a/src/main/webapp/js/index.js b/src/main/webapp/js/index.js index 6864d99e7635b339e4db23ec32b7f59499aaac84..5caa745dc122e2dd8772771d4436b5fa0c0774b7 100644 --- a/src/main/webapp/js/index.js +++ b/src/main/webapp/js/index.js @@ -11,9 +11,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; }); diff --git a/src/main/webapp/js/search.js b/src/main/webapp/js/search.js index 315ce7803d7fccf3507d649e33fcd1f2173c68e9..a27c781430ac8b5b5a3cd6f1618b281fd035516b 100644 --- a/src/main/webapp/js/search.js +++ b/src/main/webapp/js/search.js @@ -15,9 +15,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; });