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

       Web browser: ---
             Bug #: 30954
           Summary: mswearch should support a .mw-search classname instead
                    of hardcoded ids
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Search
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Currently mwsearch only supports the ids #searchform, #searchform2,
#powersearch, and #search.

We should update mwsearch to use jQuery and add support for a .mw-search class
name on the form to indicate a search form intended to search the wiki instead
of requiring that custom skins use these hardcoded ids.

mwsearch looks a little big for me to just pickup and convert. It's also fairly
focused around id's so it doesn't look easy to just convert to using a class
without going ahead and converting most of it to jQuery.

Also, instead of hardcoding the ids of search inputs we should be using
<code>$( theForm ).find(':input[name="search"]')</code> to fetch the search
input.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to