jellyfin-web/dashboard-ui/legacy/buttonenabled.js
Luke Pulverenti 996f2504b2 rework dialog
2015-12-14 09:45:42 -05:00

4 lines
155 B
JavaScript

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