diff options
author | Felix Nagel <info@felixnagel.com> | 2013-08-31 03:09:57 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-08-31 03:09:57 +0200 |
commit | 67f04e4e42e67c1b73a97efc1c46cf986cec4794 (patch) | |
tree | 533d1ad7899b97f644b9386b6fe6f788e798dec9 /ui | |
parent | 24c293215c3dd645dcabc5c612d8b848637a81a5 (diff) | |
download | jquery-ui-67f04e4e42e67c1b73a97efc1c46cf986cec4794.tar.gz jquery-ui-67f04e4e42e67c1b73a97efc1c46cf986cec4794.zip |
Selectmenu: update button text when selected option is added
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index bc7eae1bd..6685229d5 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -179,6 +179,8 @@ $.widget( "ui.selectmenu", { // Make sure menu is selected item aware this.menu.menu( "focus", null, item ); this._setAria( item.data( "ui-selectmenu-item" ) ); + + this._setText( this.buttonText, item.text() ); // Set disabled state this._setOption( "disabled", !!this.element.prop( "disabled" ) ); |