mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu tests: remove toggle event as its removed
This commit is contained in:
parent
9719719e60
commit
110cab160e
@ -20,25 +20,38 @@
|
|||||||
$('select#disabled3').selectmenu();
|
$('select#disabled3').selectmenu();
|
||||||
var disabled4 = $('select#disabled4').selectmenu();
|
var disabled4 = $('select#disabled4').selectmenu();
|
||||||
|
|
||||||
$("#disable_select").toggle( function() {
|
$("#disable_select").on("click", function() {
|
||||||
disabled4.selectmenu("disable");
|
if (disable_select) {
|
||||||
}, function() {
|
disable_select = false;
|
||||||
disabled4.removeAttr("disabled");
|
disabled4.selectmenu("disable");
|
||||||
|
} else {
|
||||||
|
disable_select = true;
|
||||||
|
disabled4.removeAttr("disabled");
|
||||||
|
}
|
||||||
disabled4.selectmenu("refresh");
|
disabled4.selectmenu("refresh");
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
$("#disable_option").toggle( function() {
|
$("#disable_option").on("click", function() {
|
||||||
disabled4.find("option:eq(0)").attr("disabled", "disabled");
|
if (disable_option) {
|
||||||
disabled4.selectmenu("refresh");
|
disable_option = false;
|
||||||
}, function() {
|
disabled4.find("option:eq(0)").attr("disabled", "disabled");
|
||||||
disabled4.find("option:eq(0)").removeAttr("disabled");
|
} else {
|
||||||
|
disable_option = true;
|
||||||
|
disabled4.find("option:eq(0)").removeAttr("disabled");
|
||||||
|
}
|
||||||
disabled4.selectmenu("refresh");
|
disabled4.selectmenu("refresh");
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
$("#disable_optgroup").toggle( function() {
|
$("#disable_optgroup").on("click", function() {
|
||||||
disabled4.find("optgroup:eq(0)").attr("disabled", "disabled");
|
if (disable_optgroup) {
|
||||||
disabled4.selectmenu("refresh");
|
disable_optgroup = false;
|
||||||
}, function() {
|
disabled4.find("optgroup:eq(0)").attr("disabled", "disabled");
|
||||||
disabled4.find("optgroup:eq(0)").removeAttr("disabled");
|
} else {
|
||||||
|
disable_optgroup = true;
|
||||||
|
disabled4.find("optgroup:eq(0)").removeAttr("disabled");
|
||||||
|
}
|
||||||
disabled4.selectmenu("refresh");
|
disabled4.selectmenu("refresh");
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
/* empty */
|
/* empty */
|
||||||
|
Loading…
Reference in New Issue
Block a user