Page MenuHomePhabricator

Universal Language Selector with disabled JavaScript
Closed, ResolvedPublic

Description

When JavaScript is disabled you get at the moment a useless button because the button is inserted in the HTML but the functionality is only in JavaScript.

Either the button gets hidden without JavaScript e. g. by creating the button with JavaScript, or the functionality get available without JavaScript e. g. by creating a special page [[Special:Universal Language Selector]] which allow changing the language by a single click. This would also solve Bug 41988.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=46306

Details

Reference
bz42371

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:53 AM
bzimport set Reference to bz42371.
bzimport added a subscriber: Unknown Object (MLST).
Fomafix created this task.Nov 23 2012, 7:59 AM

(In reply to comment #0)

When JavaScript is disabled you get at the moment a useless button because the
button is inserted in the HTML but the functionality is only in JavaScript.
Either the button gets hidden without JavaScript e. g. by creating the button
with JavaScript, or the functionality get available without JavaScript e. g. by
creating a special page [[Special:Universal Language Selector]] which allow
changing the language by a single click. This would also solve Bug 41988.

ULS requires JavaScript. In this day and age, more advanced functionality is only available when enabling JavaScript in more recent browsers.

There is easier way:

.client-nojs .ulsSomething { display: none; }

OR

// Make it hidden by default and
.client-js .ulsSomething { display: foo; }

Having dummy icon that does nothing is different issue from the issue of making ULS work without JS.

REOPENED: Hiding the useless button with CSS is also a solution.

*** This bug has been marked as a duplicate of bug 42500 ***

Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptJan 28 2016, 6:10 PM