forked from hummypkg/webif
21 lines
336 B
JavaScript
21 lines
336 B
JavaScript
|
(function($)
|
||
|
{
|
||
|
$.fn.enable = function()
|
||
|
{
|
||
|
return this.each(function() {
|
||
|
$(this)
|
||
|
.removeClass('ui-state-disabled')
|
||
|
.removeProp('disabled');
|
||
|
});
|
||
|
};
|
||
|
|
||
|
$.fn.disable = function()
|
||
|
{
|
||
|
return this.each(function() {
|
||
|
$(this)
|
||
|
.addClass('ui-state-disabled')
|
||
|
.prop('disabled', true);
|
||
|
});
|
||
|
};
|
||
|
})(jQuery);
|