mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Force the use of single quotes
This commit is contained in:
parent
8b6dc05d64
commit
9e3ca706c4
217 changed files with 8541 additions and 8540 deletions
|
@ -1,6 +1,6 @@
|
|||
Dashboard.confirm = function(message, title, callback) {
|
||||
"use strict";
|
||||
require(["confirm"], function(confirm) {
|
||||
'use strict';
|
||||
require(['confirm'], function(confirm) {
|
||||
confirm(message, title).then(function() {
|
||||
callback(!0);
|
||||
}).catch(function() {
|
||||
|
@ -10,15 +10,15 @@ Dashboard.confirm = function(message, title, callback) {
|
|||
};
|
||||
|
||||
Dashboard.showLoadingMsg = function() {
|
||||
"use strict";
|
||||
require(["loading"], function(loading) {
|
||||
'use strict';
|
||||
require(['loading'], function(loading) {
|
||||
loading.show();
|
||||
});
|
||||
};
|
||||
|
||||
Dashboard.hideLoadingMsg = function() {
|
||||
"use strict";
|
||||
require(["loading"], function(loading) {
|
||||
'use strict';
|
||||
require(['loading'], function(loading) {
|
||||
loading.hide();
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
define(["jQuery"], function($) {
|
||||
"use strict";
|
||||
define(['jQuery'], function($) {
|
||||
'use strict';
|
||||
$.fn.checked = function(value) {
|
||||
return !0 === value || !1 === value ? $(this).each(function() {
|
||||
this.checked = value;
|
||||
|
|
|
@ -4,14 +4,14 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
|
|||
(function () {
|
||||
var supportsPreventScrollOption = false;
|
||||
try {
|
||||
var focusElem = document.createElement("div");
|
||||
var focusElem = document.createElement('div');
|
||||
|
||||
focusElem.addEventListener("focus", function(event) {
|
||||
focusElem.addEventListener('focus', function(event) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}, true);
|
||||
|
||||
var opts = Object.defineProperty({}, "preventScroll", {
|
||||
var opts = Object.defineProperty({}, 'preventScroll', {
|
||||
// eslint-disable-next-line getter-return
|
||||
get: function () {
|
||||
supportsPreventScrollOption = true;
|
||||
|
@ -20,7 +20,7 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
|
|||
|
||||
focusElem.focus(opts);
|
||||
} catch (e) {
|
||||
console.error("error checking preventScroll support");
|
||||
console.error('error checking preventScroll support');
|
||||
}
|
||||
|
||||
if (!supportsPreventScrollOption) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
define(["jQuery"], function($) {
|
||||
"use strict";
|
||||
define(['jQuery'], function($) {
|
||||
'use strict';
|
||||
$.fn.selectmenu = function() {
|
||||
return this;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue