Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/jquery.uls.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@
* @param {Object} event The jQuery click event
*/
select: function ( langCode, event ) {
this.hide();
if ( this.options.clickShouldClose ) {
this.hide();
}

if ( this.options.onSelect ) {
this.options.onSelect.call( this, langCode, event );
}
Expand Down Expand Up @@ -416,6 +419,8 @@
// Should be set for distinguishing between different instances of ULS
// in the same application.
ulsPurpose: '',
// Whether or not a click on an item should close the menu
clickShouldClose: true,
// Used by LCD
quickList: [],
// Used by LCD
Expand Down