Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Voice Search doesn't replace 'Search Boards.ie...' text

  • 04-01-2012 10:28AM
    #1
    Registered Users, Registered Users 2 Posts: 90 ✭✭


    When I click on the voice search icon and speak to enter some text, the text is entered after the 'Search Boards.ie...' text

    In the attached screenshots I searched for 'test' using voice search, this actually searches for 'Search Boards.ie...test' - clicking on the search box after the voice search->text is entered doesn't clear the search box.

    Clicking on the voice search icon initially focuses on the search box, this clears the 'search boards.ie...' text, but then the voice-to-text box appears with the 'speak now' dialog, this steals the focus away from the search box and since it is still blank the javascript replaces the 'search boards.ie...' text.

    A few different approaches to fix it come to mind, a quick, dirty, and untested solution:
    $('#search .submit').click(function(){
    		if($('#sbutton').attr('value').indexOf('Search Boards.ie...') != -1 )  {
    			if($('#sbutton').attr('value').length > 19) {
    				var x = $('#sbutton').attr('value');
    				x = x.substr($('#sbutton').attr('value').indexOf('Search Boards.ie...'), 19);
    				$('#sbutton').attr('value', x);
    			} else {
    				$('#sbutton').attr('value', '');
    			}
    		}
    });
    


Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.

Advertisement