Commit:    ec1f7873d6a183e77792f0b314ac1f28474bcb12
Author:    Jakub Vrana <[email protected]>         Tue, 30 Apr 2013 16:58:44 -0700
Parents:   92fc13d2cf5ee831622d9b563a10676a84926da0
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=ec1f7873d6a183e77792f0b314ac1f28474bcb12

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);


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to