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

4 lines
155 B
JavaScript
Raw Normal View History

2015-11-28 13:39:14 -07:00
$.fn.buttonEnabled = function (enabled) {
return enabled ? this.attr('disabled', '').removeAttr('disabled') : this.attr('disabled', 'disabled');
};