diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 22:01:58 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:57 -0400 |
commit | c25a541fc414bc46a2ab6911ca2a09a1c772c999 (patch) | |
tree | 026bb342e39fd892ea2a2d9db4401d17c7a31445 /demos | |
parent | 89bf0d057bc9ec552b042a997501e094e95da543 (diff) | |
download | jquery-ui-c25a541fc414bc46a2ab6911ca2a09a1c772c999.tar.gz jquery-ui-c25a541fc414bc46a2ab6911ca2a09a1c772c999.zip |
Tabs: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'demos')
-rw-r--r-- | demos/tabs/manipulation.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/tabs/manipulation.html b/demos/tabs/manipulation.html index fc9b750b3..f7202ee48 100644 --- a/demos/tabs/manipulation.html +++ b/demos/tabs/manipulation.html @@ -48,7 +48,7 @@ }); // addTab form: calls addTab function on submit and closes the dialog - var form = dialog.find( "form" ).submit(function( event ) { + var form = dialog.find( "form" ).on( "submit", function( event ) { addTab(); dialog.dialog( "close" ); event.preventDefault(); @@ -70,18 +70,18 @@ // addTab button: just opens the dialog $( "#add_tab" ) .button() - .click(function() { + .on( "click", function() { dialog.dialog( "open" ); }); // close icon: removing the tab on click - tabs.delegate( "span.ui-icon-close", "click", function() { + tabs.on( "click", "span.ui-icon-close", function() { var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" ); $( "#" + panelId ).remove(); tabs.tabs( "refresh" ); }); - tabs.bind( "keyup", function( event ) { + tabs.on( "keyup", function( event ) { if ( event.altKey && event.keyCode === $.ui.keyCode.BACKSPACE ) { var panelId = tabs.find( ".ui-tabs-active" ).remove().attr( "aria-controls" ); $( "#" + panelId ).remove(); |