jellyfin-web/dashboard-ui/legacy/buttonenabled.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

8 lines
224 B
JavaScript

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