jellyfin-web/dashboard-ui/components/buttonenabled.js
2015-11-28 15:39:14 -05:00

4 lines
155 B
JavaScript

$.fn.buttonEnabled = function (enabled) {
return enabled ? this.attr('disabled', '').removeAttr('disabled') : this.attr('disabled', 'disabled');
};