diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-09 12:36:35 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-12-09 12:36:35 +0100 |
commit | 15032d17d921602c156fcb2ef4f6be5408774e41 (patch) | |
tree | 16c3d7ae02aad0f96011373f77754597fe54ce67 | |
parent | 7a05c65644690000c046ce111c7b20840069e470 (diff) | |
download | jquery-ui-15032d17d921602c156fcb2ef4f6be5408774e41.tar.gz jquery-ui-15032d17d921602c156fcb2ef4f6be5408774e41.zip |
Selectmenu: Remove colons from labels, annoying for screenreader-users. Cleanup whitespace.
-rw-r--r-- | demos/selectmenu/default.html | 6 | ||||
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/demos/selectmenu/default.html b/demos/selectmenu/default.html index 6b1aacdfb..824f89fa2 100644 --- a/demos/selectmenu/default.html +++ b/demos/selectmenu/default.html @@ -37,7 +37,7 @@ <form action="#"> <fieldset> - <label for="speed">Select a speed:</label> + <label for="speed">Select a speed</label> <select name="speed" id="speed"> <option value="Slower">Slower</option> <option value="Slow">Slow</option> @@ -48,7 +48,7 @@ <br /> <br /> <br /> - <label for="files">Select a file:</label> + <label for="files">Select a file</label> <select name="files" id="files"> <optgroup label="Scripts"> <option value="jquery">jQuery.js</option> @@ -62,7 +62,7 @@ <br /> <br /> <br /> - <label for="number">Select a number:</label> + <label for="number">Select a number</label> <select name="number" id="number"> <option value="1">1</option> <option value="2" selected="selected">2</option> diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 97b64c31a..5d531fc32 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -235,7 +235,7 @@ $.widget( "ui.selectmenu", { if ( !this.isOpen ) { return; } - + var id = this._getSelectedItem().find( "a" ).attr( "id" ); this.isOpen = false; this._toggleAttr(); |