jellyfin-web/dashboard-ui/legacy/buttonenabled.js
2016-06-02 13:08:25 -04:00

7 lines
206 B
JavaScript

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