mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: Remove colons from labels, annoying for screenreader-users. Cleanup whitespace.
This commit is contained in:
parent
7a05c65644
commit
15032d17d9
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
<form action="#">
|
<form action="#">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<label for="speed">Select a speed:</label>
|
<label for="speed">Select a speed</label>
|
||||||
<select name="speed" id="speed">
|
<select name="speed" id="speed">
|
||||||
<option value="Slower">Slower</option>
|
<option value="Slower">Slower</option>
|
||||||
<option value="Slow">Slow</option>
|
<option value="Slow">Slow</option>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<label for="files">Select a file:</label>
|
<label for="files">Select a file</label>
|
||||||
<select name="files" id="files">
|
<select name="files" id="files">
|
||||||
<optgroup label="Scripts">
|
<optgroup label="Scripts">
|
||||||
<option value="jquery">jQuery.js</option>
|
<option value="jquery">jQuery.js</option>
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<label for="number">Select a number:</label>
|
<label for="number">Select a number</label>
|
||||||
<select name="number" id="number">
|
<select name="number" id="number">
|
||||||
<option value="1">1</option>
|
<option value="1">1</option>
|
||||||
<option value="2" selected="selected">2</option>
|
<option value="2" selected="selected">2</option>
|
||||||
|
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -235,7 +235,7 @@ $.widget( "ui.selectmenu", {
|
|||||||
if ( !this.isOpen ) {
|
if ( !this.isOpen ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var id = this._getSelectedItem().find( "a" ).attr( "id" );
|
var id = this._getSelectedItem().find( "a" ).attr( "id" );
|
||||||
this.isOpen = false;
|
this.isOpen = false;
|
||||||
this._toggleAttr();
|
this._toggleAttr();
|
||||||
|
Loading…
Reference in New Issue
Block a user