jellyfin-web/dashboard-ui/legacy/buttonenabled.js

4 lines
155 B
JavaScript
Raw Normal View History

2015-12-14 08:43:03 -07:00
$.fn.buttonEnabled = function (enabled) {
return enabled ? this.attr('disabled', '').removeAttr('disabled') : this.attr('disabled', 'disabled');
};