element enable/disable
This commit is contained in:
parent
45f17d06ce
commit
295e561562
@ -1,4 +1,18 @@
|
|||||||
jfa.utilities.element = (function () {
|
jfa.utilities.element = (function () {
|
||||||
|
function disable(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element.disabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
function enable(element) {
|
||||||
|
if (!element) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element.disabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
function hide(element) {
|
function hide(element) {
|
||||||
if (!element) {
|
if (!element) {
|
||||||
return;
|
return;
|
||||||
@ -15,6 +29,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
disable: disable,
|
||||||
|
enable: enable,
|
||||||
hide: hide,
|
hide: hide,
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user