1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/dashboard-ui/legacy/buttonenabled.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

8 lines
No EOL
224 B
JavaScript

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