com web/php: Open custom search results in the same window: include/prepend.inc

From: Date: Tue, 30 Apr 2013 23:58:44 +0000
Subject: com web/php: Open custom search results in the same window: include/prepend.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-15792@lists.php.net to get a copy of this message
Commit: 95787bec373b93fd5c6e5cb03571fde753040371 Author: Jakub Vrana <jakub@vrana.cz> Tue, 30 Apr 2013 16:58:44 -0700 Parents: 48d539e898b5a5c4d35fc2a7c11432c4f9e5e454 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=95787bec373b93fd5c6e5cb03571fde753040371 Log: Open custom search results in the same window Changed paths: M include/prepend.inc Diff: diff --git a/include/prepend.inc b/include/prepend.inc index 4131413..6127845 100644 --- a/include/prepend.inc +++ b/include/prepend.inc @@ -202,8 +202,10 @@ function google_cse($default = '', $lang = 'en') { <script type="text/javascript"> google.load('search', '1', {language : '<?php echo $lang; ?>', style : google.loader.themes.MINIMALIST}); google.setOnLoadCallback(function() { - var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( + var customSearchOptions = {}; + var customSearchControl = new google.search.CustomSearchControl( '011570197911755000456:fip9wopfz_u', customSearchOptions); + customSearchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); var options = new google.search.DrawOptions(); options.setAutoComplete(true);

« previous php.webmaster (#15792) next »