jellyfin-web/dashboard-ui/legacy/buttonenabled.js
2015-12-14 10:43:03 -05:00

4 lines
155 B
JavaScript

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