mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
15 lines
336 B
JavaScript
15 lines
336 B
JavaScript
|
function menu_log( message, clear ) {
|
||
|
if ( clear ) {
|
||
|
$( "#log" ).empty();
|
||
|
}
|
||
|
if ( message === undefined ) {
|
||
|
message = $( "#log" ).data( "lastItem" );
|
||
|
}
|
||
|
$( "#log" ).prepend( message + "," );
|
||
|
}
|
||
|
|
||
|
function menu_click( menu, item ) {
|
||
|
$( "#log" ).data( "lastItem", item );
|
||
|
menu.find( "li:eq(" + item + ") a" ).trigger( "click" );
|
||
|
}
|