973a7cdacf
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@755 2a923420-c742-0410-a762-8d5b09965624
22 lines
378 B
JavaScript
Executable File
22 lines
378 B
JavaScript
Executable File
(function($)
|
|
{
|
|
$.fn.enable = function()
|
|
{
|
|
return this.each(function() {
|
|
$(this)
|
|
.removeClass('ui-state-disabled')
|
|
.removeClass('ui-button-disabled')
|
|
.removeProp('disabled');
|
|
});
|
|
};
|
|
|
|
$.fn.disable = function()
|
|
{
|
|
return this.each(function() {
|
|
$(this)
|
|
.addClass('ui-state-disabled')
|
|
.prop('disabled', true);
|
|
});
|
|
};
|
|
})(jQuery);
|