1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

minify resources

This commit is contained in:
Luke Pulverenti 2017-01-27 22:16:59 -05:00
parent 8a6884abef
commit 661eeac16e
201 changed files with 203 additions and 52376 deletions

View file

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

View file

@ -1,12 +1 @@
Dashboard.confirm = function (message, title, callback) {
'use strict';
require(['confirm'], function (confirm) {
confirm(message, title).then(function () {
callback(true);
}, function () {
callback(false);
});
});
};
Dashboard.confirm=function(message,title,callback){"use strict";require(["confirm"],function(confirm){confirm(message,title).then(function(){callback(!0)},function(){callback(!1)})})};

View file

@ -1,20 +1 @@
define(['jQuery'], function ($) {
'use strict';
// TODO: This needs to be deprecated, but it's used heavily
$.fn.checked = function (value) {
if (value === true || value === false) {
// Set the value of the checkbox
return $(this).each(function () {
this.checked = value;
});
} else {
// Return check state
return this.length && this[0].checked;
}
};
$.fn.checkboxradio = function () {
return this;
};
});
define(["jQuery"],function($){"use strict";$.fn.checked=function(value){return value===!0||value===!1?$(this).each(function(){this.checked=value}):this.length&&this[0].checked},$.fn.checkboxradio=function(){return this}});

View file

@ -1,9 +1 @@
define(['jQuery'], function ($) {
'use strict';
// TODO: This needs to be deprecated, but it's used heavily by plugins
$.fn.selectmenu = function () {
// No-op. This implementation only exists to prevent script errors
return this;
};
});
define(["jQuery"],function($){"use strict";$.fn.selectmenu=function(){return this}});