https://bugzilla.wikimedia.org/show_bug.cgi?id=35974

--- Comment #16 from zlight <zedlight...@gmail.com> 2012-07-11 19:45:36 UTC ---
I found a better method to open search in a new tab. See: 
*http://en.wikipedia.org/wiki/Wikipedia:Gadget/proposals#Ctrl-click_to_open_search_in_new_tab

Add the following revised JS to Special:MyPage/common.js

/* Ctrl-click to open search buttons in new tab */

$('#searchform, #search, #powersearch, #searchbox, .search-types,
#search-types').bind('keyup keydown mousedown', 
  function (e){ $(this).attr('target', e.ctrlKey?'_blank':'') })

Ctrl-click now works for opening both Wikipedia search buttons and Wikipedia
search links in new tabs.
http://en.wikipedia.org/wiki/Special:Search

In Special:Search the search options initially found below the search form are
in the form of links. The search form itself uses a submit button. As does the
search form at the top right of every page. And the search forms for searching
archives. 

It sure would be nice if this was a preference in core MediaWiki software. Then
all wikis everywhere would not have to keep reinventing the wheel in order to
add a way to open search in a new tab.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to