mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Removed url method. Fixes #7148 - Tabs: Remove url method.
This commit is contained in:
parent
52a184e31c
commit
acdd1917b2
@ -510,21 +510,6 @@ test( "length", function() {
|
||||
equal( $( "#tabs2" ).tabs().tabs( "length" ), 5, "ajax tabs with missing panels" );
|
||||
});
|
||||
|
||||
test( "url", function() {
|
||||
expect( 2 );
|
||||
|
||||
var element = $( "#tabs2" ).tabs(),
|
||||
anchor = element.find( ".ui-tabs-anchor" ).eq( 3 );
|
||||
|
||||
element.tabs( "url", 3, "data/test2.html" );
|
||||
equal( anchor.attr( "href" ), "data/test2.html", "href was updated" );
|
||||
element.one( "tabsbeforeload", function( event, ui ) {
|
||||
equal( ui.ajaxSettings.url, "data/test2.html", "ajaxSettings.url" );
|
||||
event.preventDefault();
|
||||
});
|
||||
element.tabs( "option", "active", 3 );
|
||||
});
|
||||
|
||||
asyncTest( "abort", function() {
|
||||
expect( 1 );
|
||||
|
||||
|
7
ui/jquery.ui.tabs.js
vendored
7
ui/jquery.ui.tabs.js
vendored
@ -854,13 +854,6 @@ if ( $.uiBackCompat !== false ) {
|
||||
};
|
||||
};
|
||||
|
||||
// url method
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
url: function( index, url ) {
|
||||
this.anchors.eq( index ).attr( "href", url );
|
||||
}
|
||||
});
|
||||
|
||||
// abort method
|
||||
$.widget( "ui.tabs", $.ui.tabs, {
|
||||
abort: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user