Merge branch 'stable'

This commit is contained in:
jo 2023-07-06 21:39:33 +02:00
commit 6b9f3b14fe
No known key found for this signature in database
GPG Key ID: B2FEC9B22722B984
40 changed files with 379 additions and 379 deletions

View File

@ -29,7 +29,7 @@ repos:
exclude: ^api
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
rev: v3.0.0
hooks:
- id: prettier
files: \.(md|mdx|yml|yaml|js|jsx|ts|tsx|json|css)$

View File

@ -31,7 +31,7 @@ setup(
"types-requests>=2.31.0,<2.32",
],
"sentry": [
"sentry-sdk>=1.15.0,<1.27",
"sentry-sdk>=1.15.0,<1.28",
],
},
zip_safe=False,

View File

@ -48,7 +48,7 @@ setup(
"requests-mock>=1.10.0,<1.12",
],
"sentry": [
"sentry-sdk[django]>=1.15.0,<1.27",
"sentry-sdk[django]>=1.15.0,<1.28",
],
},
)

View File

@ -49,49 +49,49 @@
"css/users.css": "94c94817a8505ff4dfcd090987859a7e",
"css/waveform.css": "4ce429708933e6da1a2f3bdb2a01db52",
"js/airtime/airtime_bootstrap.js": "9575982385f6c74e2b4ec61e30214a7c",
"js/airtime/audiopreview/preview_jplayer.js": "ad13f98d9a5ef4bd67bfcc97c8f6e639",
"js/airtime/audiopreview/preview_jplayer.js": "133b4b9a3436716a8367d353f1658da3",
"js/airtime/buttons/buttons.js": "1a984b1e01262816c899c5fa3f12e3cd",
"js/airtime/common/audioplaytest.js": "93737dabc4cce4fcdcc6d54acf86d16d",
"js/airtime/common/common.js": "ca0e348031849d34b3e47ddd3645a5f6",
"js/airtime/common/facebook.js": "f1bdfa74224c9b4b4f88084b881f85db",
"js/airtime/dashboard/dashboard.js": "865cd63213b79285739087bf55f2201a",
"js/airtime/common/common.js": "8c0675f5a1c8d95323b2f3983c658f62",
"js/airtime/common/facebook.js": "336f6c41c1ec56df4897c20c00f56322",
"js/airtime/dashboard/dashboard.js": "6ba3539e774840e3792eeaf218916673",
"js/airtime/dashboard/helperfunctions.js": "734d24845014fa873bc737b23b493902",
"js/airtime/dashboard/versiontooltip.js": "f267c6ec0205e98f1ffba5f636928f7a",
"js/airtime/library/events/library_playlistbuilder.js": "1e0aa11953c7ff243cd2df241cc8a296",
"js/airtime/library/events/library_showbuilder.js": "996a5c3008eb17552ee8f891d88c9341",
"js/airtime/library/library.js": "0306336f09adc3b825b540a7aaa0fab7",
"js/airtime/library/plupload.js": "7f754a28ac2d4060aec918c688a74a22",
"js/airtime/library/podcast.js": "f4fd354d739e7121ba00162496c295df",
"js/airtime/library/publish.js": "851ef4c4caa9e9220acf945c21760189",
"js/airtime/library/spl.js": "5ef418220a200cd52d7b441ed0c2246f",
"js/airtime/listenerstat/listenerstat.js": "b4d4a2b35dca36b01df29ee4074e05be",
"js/airtime/listenerstat/showlistenerstat.js": "479842e8bef656b48cbccf4f4f058e22",
"js/airtime/dashboard/versiontooltip.js": "53ed1c2f7dd9527cba80bbcdb239ac88",
"js/airtime/library/events/library_playlistbuilder.js": "7191ee58ad07b8f652be02bb131eb5e6",
"js/airtime/library/events/library_showbuilder.js": "f3d3f65fe1e7a80cd17c228889c6a1ae",
"js/airtime/library/library.js": "bf61a213cf38521d1892034628faf17c",
"js/airtime/library/plupload.js": "0f6be5b133650828b9ffc74e7852dc89",
"js/airtime/library/podcast.js": "4dedd84cb571cdba2401bfb8ba621e69",
"js/airtime/library/publish.js": "ab3a1452dd332cdb0773241a1c17b7e0",
"js/airtime/library/spl.js": "c4cbac0c237b548064685a2cb16d3fa2",
"js/airtime/listenerstat/listenerstat.js": "a3733dae8f9549668125ec9852d356ed",
"js/airtime/listenerstat/showlistenerstat.js": "7cf0c375420f1c8471d304bc8758b2cd",
"js/airtime/login/login.js": "7278cf49618791d75bacce38dd1b1d46",
"js/airtime/nowplaying/dayview.js": "37586afbb39e7f16ac0d0b22e8c8ed01",
"js/airtime/nowplaying/lang-timezone-setup.js": "72d1c4a65966d164de8f5d6a130d9dd3",
"js/airtime/nowplaying/nowview.js": "303e2104be556dd4d736b43cbd7b403f",
"js/airtime/nowplaying/register.js": "bbd8c45f368e58a02f1524ab4608793f",
"js/airtime/nowplaying/register.js": "7d1e5d38eee510c22e408077155ab672",
"js/airtime/player/player.js": "76a78bfc1bac0c5479916d9d4641a5b1",
"js/airtime/player/playerhtml5.js": "6e370f8572a012f50fd063580aebe861",
"js/airtime/playlist/smart_blockbuilder.js": "c06baaa7e4b341db15e072b2231cd9c7",
"js/airtime/playouthistory/configuretemplate.js": "08b1602cd2a528958c09228d082fdf83",
"js/airtime/playouthistory/historytable.js": "5d454ec89ec05248b2dd2c4d2416a001",
"js/airtime/playouthistory/template.js": "edf925a69fcb29c84568358bf1bade70",
"js/airtime/preferences/musicdirs.js": "72312faa4081949d5c17ce2d3428dbdc",
"js/airtime/preferences/preferences.js": "73aec5c4969eef8f6b02f044b00425c3",
"js/airtime/preferences/streamsetting.js": "b45e7ad91d0b3f5e582fd3bd4c697a05",
"js/airtime/schedule/add-show.js": "4984c9bdac1e541eecab2541e21450a7",
"js/airtime/schedule/full-calendar-functions.js": "09ac64ebbe48666dcc3c4669b12509b7",
"js/airtime/schedule/schedule.js": "d835a1c6110c033edf5c8d0abb701d7c",
"js/airtime/showbuilder/builder.js": "08338d5f8e957bda2bac397e958f5610",
"js/airtime/showbuilder/main_builder.js": "6db47cc75cb5072b09431fbd6c90b89f",
"js/airtime/player/playerhtml5.js": "058b061891abf4b3ee827c8e83996611",
"js/airtime/playlist/smart_blockbuilder.js": "36337e7e025d89976d754e34fc914887",
"js/airtime/playouthistory/configuretemplate.js": "44386f366d2baca3039f8c4cb9cd4422",
"js/airtime/playouthistory/historytable.js": "7e84ee76011ecf8f21abdd483487a45e",
"js/airtime/playouthistory/template.js": "742af1a411aef1745fa2ad3082499452",
"js/airtime/preferences/musicdirs.js": "81eb5dbc292144fe8762ebcae47372a5",
"js/airtime/preferences/preferences.js": "af842763a466c9ea5b9d697db424e08f",
"js/airtime/preferences/streamsetting.js": "60bb2f4f750594afc330c1f8c2037b91",
"js/airtime/schedule/add-show.js": "6d44396fd42dc3da7d64740564089f4c",
"js/airtime/schedule/full-calendar-functions.js": "6854ef2c1863250c4f2494d5cfedf394",
"js/airtime/schedule/schedule.js": "14e2073b1543cb404460317999850c17",
"js/airtime/showbuilder/builder.js": "b5addaf98002c1673e4f1c93997b8dae",
"js/airtime/showbuilder/main_builder.js": "d1ea3c3d834e47cd35c27efd75516190",
"js/airtime/showbuilder/tabs.js": "a0b5284afde950a6f32c7e9e75550690",
"js/airtime/status/status.js": "f8c99b7b30e66c9127470bc8c01fb4b1",
"js/airtime/status/status.js": "41456c6ed40f820e1e99215e81eb4bc4",
"js/airtime/tracktype/tracktype.js": "cca00731e212727908bec54f21d4be58",
"js/airtime/user/user.js": "58b9a9951aca48bbed1ad080aa318080",
"js/airtime/utilities/utilities.js": "ef59f38fbef5a7807c9fe266c58e7a17",
"js/airtime/widgets/table-example.js": "0aa2d9c528ee2d3fdeca997c7e93bdee",
"js/airtime/widgets/table.js": "b50a9e26f39561b78e8e1dc6a320de11",
"js/airtime/user/user.js": "28811eb65c17bc9954900daeaed6c1ad",
"js/airtime/utilities/utilities.js": "e5d83eea1b38d2ff19bb968d30af9c98",
"js/airtime/widgets/table-example.js": "77d448b6496adf5be0a360640cd3980c",
"js/airtime/widgets/table.js": "f0f4e9d8188f4a9b213f93728c372525",
"js/blockui/jquery.blockUI.js": "3f1a8ca5b9f8907f3361a94b4344154d",
"js/bootstrap-datetime/bootstrap-datetimepicker.js": "cc1d5238ee226abb25fd7391c116124f",
"js/bootstrap/bootstrap.min.js": "f406e54c52f4fd0ade6ff6b459e4cbf8",

View File

@ -54,7 +54,7 @@ $(document).ready(function () {
playBlock(blockId, blockIndex);
}
},
}
},
);
$("#jp_container_1").on("mouseenter", "ul.jp-controls li", function (ev) {
@ -80,7 +80,7 @@ function playAllPlaylist(p_playlistID, p_playlistIndex) {
} else {
buildplaylist(
baseUrl + "audiopreview/get-playlist/playlistID/" + p_playlistID,
p_playlistIndex
p_playlistIndex,
);
}
}
@ -93,7 +93,7 @@ function playBlock(p_blockId, p_blockIndex) {
} else {
buildplaylist(
baseUrl + "audiopreview/get-block/blockId/" + p_blockId,
p_blockIndex
p_blockIndex,
);
}
}
@ -113,7 +113,7 @@ function playAllShow(p_showID, p_index) {
} else {
buildplaylist(
baseUrl + "audiopreview/get-show/showID/" + p_showID,
p_index
p_index,
);
}
}
@ -208,7 +208,7 @@ function buildplaylist(p_url, p_playIndex) {
// Add 2px to account for borders
window.resizeTo(
container.width() + 2,
container.height() + URL_BAR_HEIGHT + 2
container.height() + URL_BAR_HEIGHT + 2,
);
});
}
@ -270,6 +270,6 @@ function playOne(uri, mime) {
// Add 2px to account for borders
window.resizeTo(
container.width() + 2,
container.height() + URL_BAR_HEIGHT + 2
container.height() + URL_BAR_HEIGHT + 2,
);
}

View File

@ -151,7 +151,7 @@ function open_audio_preview(type, id) {
openPreviewWindow(
baseUrl + "audiopreview/audio-preview/audioFileID/" + id + "/type/" + type,
previewWidth,
previewHeight
previewHeight,
);
_preview_window.focus();
}
@ -177,7 +177,7 @@ function open_playlist_preview(p_playlistID, p_playlistIndex) {
"/playlistID/" +
p_playlistID,
previewWidth,
previewHeight
previewHeight,
);
_preview_window.focus();
}
@ -197,7 +197,7 @@ function open_block_preview(p_blockId, p_blockIndex) {
"/blockId/" +
p_blockId,
previewWidth,
previewHeight
previewHeight,
);
_preview_window.focus();
}
@ -219,7 +219,7 @@ function open_show_preview(p_showID, p_showIndex) {
"/showIndex/" +
p_showIndex,
previewWidth,
previewHeight
previewHeight,
);
_preview_window.focus();
}
@ -230,7 +230,7 @@ function openPreviewWindow(url, w, h) {
_preview_window = window.open(
url,
$.i18n._("Audio Player"),
dim + "scrollbars=yes"
dim + "scrollbars=yes",
);
return false;
}
@ -245,7 +245,7 @@ function validateTimeRange() {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
start = oRange.start;
@ -278,13 +278,13 @@ function validateImage(img, el) {
// hack way of inserting an error message
var err = $.i18n._("Selected file is too large");
el.parent().after(
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>"
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>",
);
return false;
} else if (validateMimeType(img.type) < 0) {
var err = $.i18n._("File format is not supported");
el.parent().after(
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>"
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>",
);
return false;
}
@ -346,7 +346,7 @@ function getUsabilityHint() {
showHint($hint_div);
}
}
}
},
);
}
@ -395,7 +395,7 @@ jQuery.fn.scrollText = function (selector) {
{
textIndent: "-" + (sw + 1 - iw) + "px",
},
sw * 8
sw * 8,
);
}
});
@ -404,7 +404,7 @@ jQuery.fn.scrollText = function (selector) {
{
textIndent: "0",
},
500
500,
);
});
});

View File

@ -38,14 +38,14 @@ var AIRTIME = (function (AIRTIME) {
if (response.authResponse) {
mod.getPagesOwnedByUser(
response.authResponse.userID,
response.authResponse.accessToken
response.authResponse.accessToken,
);
mod.addPageTab();
} else {
console.log("Authorization failed.");
}
},
{ scope: "manage_pages" }
{ scope: "manage_pages" },
);
};
@ -55,7 +55,7 @@ var AIRTIME = (function (AIRTIME) {
function (response) {
console.log(response);
},
{ access_token: accessToken }
{ access_token: accessToken },
);
};
@ -79,12 +79,12 @@ var AIRTIME = (function (AIRTIME) {
{ pages: JSON.stringify(pageIdList) },
function () {
alert("Successfully added to your Facebook page!");
}
},
)
.done(function () {})
.fail(function () {
alert(
"Sorry, an error occurred and we were unable to add the widget to your Facebook page."
"Sorry, an error occurred and we were unable to add the widget to your Facebook page.",
);
});
}
@ -92,7 +92,7 @@ var AIRTIME = (function (AIRTIME) {
{
app_id: FACEBOOK_APP_ID,
//redirect_uri: 'https://localhost'
}
},
);
};

View File

@ -141,7 +141,7 @@ function updatePlaybar() {
$.i18n._("Recording:") +
"</span>" +
currentSong.name +
","
",",
);
} else {
$("#current").text(currentSong.name + ",");
@ -153,7 +153,7 @@ function updatePlaybar() {
$("#now-playing-artwork_containter").html(
"<img height='75' width='75' class'artwork' src='" +
currentSong.metadata.artwork_data +
"' />"
"' />",
);
Cookies.remove("current_track");
Cookies.set("current_track", currentSong.name);
@ -175,14 +175,14 @@ function updatePlaybar() {
showName +
" - " +
$.i18n._("Master Stream") +
"</span>"
"</span>",
);
} else {
$("#current").html(
$.i18n._("Current") +
": <span style='color:red; font-weight:bold'>" +
$.i18n._("Master Stream") +
"</span>"
"</span>",
);
}
} else if (live_dj_on_air) {
@ -193,14 +193,14 @@ function updatePlaybar() {
showName +
" - " +
$.i18n._("Live Stream") +
"</span>"
"</span>",
);
} else {
$("#current").html(
$.i18n._("Current") +
": <span style='color:red; font-weight:bold'>" +
$.i18n._("Live Stream") +
"</span>"
"</span>",
);
}
} else {
@ -208,7 +208,7 @@ function updatePlaybar() {
$.i18n._("Current") +
": <span style='color:red; font-weight:bold'>" +
$.i18n._("Nothing Scheduled") +
"</span>"
"</span>",
);
}
}
@ -238,10 +238,10 @@ function updatePlaybar() {
parseInt(Math.round(currentSong.songEndPosixTime / 1000), 10) * 1000;
$("#time-elapsed").text(
convertToHHMMSS(approximateServerTime - songStartRoughly)
convertToHHMMSS(approximateServerTime - songStartRoughly),
);
$("#time-remaining").text(
convertToHHMMSS(songEndRoughly - approximateServerTime)
convertToHHMMSS(songEndRoughly - approximateServerTime),
);
$("#song-length").text(convertToHHMMSS(currentSong.songLengthMs));
}
@ -260,7 +260,7 @@ function updatePlaybar() {
$("#show-length").text(
convertDateToHHMM(currentShow[0].showStartPosixTime) +
" - " +
convertDateToHHMM(currentShow[0].showEndPosixTime)
convertDateToHHMM(currentShow[0].showEndPosixTime),
);
}
@ -278,7 +278,7 @@ function calcAdditionalData(currentItem) {
function calcAdditionalShowData(show) {
if (show.length > 0) {
show[0].showStartPosixTime = convertDateToPosixTime(
show[0].start_timestamp
show[0].start_timestamp,
);
show[0].showEndPosixTime = convertDateToPosixTime(show[0].end_timestamp);
show[0].showLengthMs =
@ -538,7 +538,7 @@ function setSwitchListener(ele) {
}
status_span.html(data.status);
}
}
},
);
}
@ -553,7 +553,7 @@ function kickSource(ele) {
if (data.error) {
alert(data.error);
}
}
},
);
}
@ -573,7 +573,7 @@ function init() {
stream_window = window.open(
baseUrl + "Dashboard/stream-player",
"name",
"width=400,height=158"
"width=400,height=158",
);
stream_window.focus();
return false;

View File

@ -24,28 +24,28 @@ function getContent() {
msg +=
"<li>" +
$.i18n._(
"A patch update for your LibreTime installation is available."
"A patch update for your LibreTime installation is available.",
);
}
if (hasMinor) {
msg +=
"<li>" +
$.i18n._(
"A feature update for your LibreTime installation is available."
"A feature update for your LibreTime installation is available.",
);
}
if (hasMajor && !hasMultiMajor) {
msg +=
"<li>" +
$.i18n._(
"A major update for your LibreTime installation is available."
"A major update for your LibreTime installation is available.",
);
}
if (hasMultiMajor) {
msg +=
"<li>" +
$.i18n._(
"Multiple major updates for LibreTime installation are available. Please upgrade as soon as possible."
"Multiple major updates for LibreTime installation are available. Please upgrade as soon as possible.",
);
}
msg += "</ul>";

View File

@ -37,7 +37,7 @@ var AIRTIME = (function (AIRTIME) {
}
AIRTIME.library.changeAddButtonText(
$(".btn-group #library-plus #lib-plus-text"),
btnText
btnText,
);
};
@ -73,7 +73,7 @@ var AIRTIME = (function (AIRTIME) {
mod.checkToolBarIcons();
$(
"#library_display tr.lib-audio, tr.lib-stream, tr.lib-pl, tr.lib-block"
"#library_display tr.lib-audio, tr.lib-stream, tr.lib-pl, tr.lib-block",
).draggable({
helper: function () {
var $el = $(this),
@ -178,8 +178,8 @@ var AIRTIME = (function (AIRTIME) {
} else if ($(".obj_type").val() == "playlist") {
alert(
$.i18n._(
"You can only add tracks, smart blocks, and webstreams to playlists."
)
"You can only add tracks, smart blocks, and webstreams to playlists.",
),
);
}
}

View File

@ -54,7 +54,7 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.library.changeAddButtonText(
$(".btn-group #library-plus #lib-plus-text"),
btnText
btnText,
);
};
@ -100,7 +100,7 @@ var AIRTIME = (function (AIRTIME) {
if (emptyRow.length > 0) {
emptyRow.hide();
var mediaType = parseInt(
$(".media_type_selector.selected").data("selection-id")
$(".media_type_selector.selected").data("selection-id"),
),
img = wrapper.find(".empty_placeholder_image");
if (!opts && isNaN(mediaType)) {
@ -127,7 +127,7 @@ var AIRTIME = (function (AIRTIME) {
opts.href +
"'>" +
$.i18n._("Learn about " + opts.media) +
"</a>"
"</a>",
);
}
@ -265,7 +265,7 @@ var AIRTIME = (function (AIRTIME) {
if (data === undefined) {
alert(
$.i18n._("Cannot schedule outside a show.\nTry creating a show first.")
$.i18n._("Cannot schedule outside a show.\nTry creating a show first."),
);
return false;
}
@ -281,7 +281,7 @@ var AIRTIME = (function (AIRTIME) {
{
scrollTop: el.offset().top,
},
0
0,
);
}
@ -420,7 +420,7 @@ var AIRTIME = (function (AIRTIME) {
function (json) {
AIRTIME.playlist.fileMdEdit(json, data.tr_id);
//buildEditMetadataDialog(json);
}
},
);
} else if (data.ftype === "playlist" || data.ftype === "block") {
AIRTIME.playlist.fnEdit(data, baseUrl + "playlist/edit");

View File

@ -209,7 +209,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("New") +
"</span>" +
"</button>" +
"</div>"
"</div>",
)
.append(
"<div class='btn-group' title=" +
@ -221,7 +221,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Edit") +
"</span>" +
"</button>" +
"</div>"
"</div>",
);
}
@ -232,7 +232,7 @@ var AIRTIME = (function (AIRTIME) {
"<i class='icon-white icon-plus'></i>" +
"<span id='lib-plus-text'></span>" +
"</button>" +
"</div>"
"</div>",
)
.append(
"<div class='btn-group' title=" +
@ -244,7 +244,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Delete") +
"</span>" +
"</button>" +
"</div>"
"</div>",
);
if (onDashboard) {
@ -257,7 +257,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Publish") +
"</span>" +
"</button>" +
"</div>"
"</div>",
);
}
};
@ -538,7 +538,7 @@ var AIRTIME = (function (AIRTIME) {
//Re-enable the delete button
AIRTIME.button.enableButton("btn-group #sb-delete", false);
}
},
);
mod.selectNone();
};
@ -854,7 +854,7 @@ var AIRTIME = (function (AIRTIME) {
bSearchable: false,
sWidth: "20px",
sClass: "library_actions",
}
},
);
}
@ -902,7 +902,7 @@ var AIRTIME = (function (AIRTIME) {
},
fnStateLoad: function fnLibStateLoad(oSettings) {
var settings = JSON.parse(
localStorage.getItem(dataTableLocalStorageKey)
localStorage.getItem(dataTableLocalStorageKey),
);
// local storage was empty lets get something from the backend
@ -917,7 +917,7 @@ var AIRTIME = (function (AIRTIME) {
success: function (oData) {
localStorage.setItem(
dataTableLocalStorageKey,
JSON.stringify(oData)
JSON.stringify(oData),
);
settings = oData;
},
@ -999,7 +999,7 @@ var AIRTIME = (function (AIRTIME) {
(data.iTotalRecords - data.iTotalDisplayRecords) +
$.i18n._(" of ") +
data.iTotalRecords +
$.i18n._(" records")
$.i18n._(" records"),
);
$(".empty_placeholder").hide();
$libTable.find("tr:has(td.dataTables_empty)").show();
@ -1010,7 +1010,7 @@ var AIRTIME = (function (AIRTIME) {
.find('.dataTables_filter input[type="text"]')
.css(
"padding-right",
$("#advanced-options").find("button").outerWidth()
$("#advanced-options").find("button").outerWidth(),
);
if (!$('#advanced_search input[type="text"]').is(":focus")) {
$libContent.find('.dataTables_filter input[type="text"]').focus();
@ -1061,7 +1061,7 @@ var AIRTIME = (function (AIRTIME) {
$(
"#au_" +
aData.id +
" td.library_track_type div.library_track_type_btn"
" td.library_track_type div.library_track_type_btn",
).qtip({
overwrite: false,
content: {
@ -1073,7 +1073,7 @@ var AIRTIME = (function (AIRTIME) {
def: false,
position: {
target: $(
"#au_" + aData.id + " td.library_track_type"
"#au_" + aData.id + " td.library_track_type",
), // my target
my: "bottom center",
at: "top center",
@ -1130,7 +1130,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Track preview") +
'" src="' +
baseUrl +
'css/images/icon_audioclip.png">'
'css/images/icon_audioclip.png">',
);
if (aData.artwork_data) {
$(nRow)
@ -1140,7 +1140,7 @@ var AIRTIME = (function (AIRTIME) {
aData.id +
'" width="28" height="28" src="' +
aData.artwork_data +
'">'
'">',
);
} else {
$(nRow)
@ -1148,7 +1148,7 @@ var AIRTIME = (function (AIRTIME) {
.html(
'<img class="img_small" width="28" height="28" src="' +
baseUrl +
'css/images/no-cover.jpg">'
'css/images/no-cover.jpg">',
);
}
} else if (aData.ftype === "playlist") {
@ -1159,7 +1159,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Playlist preview") +
'" src="' +
baseUrl +
'css/images/icon_playlist.png">'
'css/images/icon_playlist.png">',
);
} else if (aData.ftype === "block") {
$(nRow)
@ -1169,7 +1169,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Smart Block") +
'" src="' +
baseUrl +
'css/images/icon_smart-block.png">'
'css/images/icon_smart-block.png">',
);
} else if (aData.ftype === "stream") {
$(nRow)
@ -1179,7 +1179,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Webstream preview") +
'" src="' +
baseUrl +
'css/images/icon_webstream.png">'
'css/images/icon_webstream.png">',
);
}
@ -1283,7 +1283,7 @@ var AIRTIME = (function (AIRTIME) {
"' class='controls " +
inputClass +
"'></div>" +
"</div>"
"</div>",
);
} else {
advanceSearchDiv.append(
@ -1300,7 +1300,7 @@ var AIRTIME = (function (AIRTIME) {
"' class='controls " +
inputClass +
"'></div>" +
"</div>"
"</div>",
);
}
@ -1340,7 +1340,7 @@ var AIRTIME = (function (AIRTIME) {
//Set up the datatables string translation table with different strings depending on
//whether you're viewing files, playlists, smart blocks, etc.
var type = parseInt(
$(".media_type_selector.selected").data("selection-id")
$(".media_type_selector.selected").data("selection-id"),
);
type =
type === undefined
@ -1446,7 +1446,7 @@ var AIRTIME = (function (AIRTIME) {
var tr = $(this).parent(),
data = tr.data("aData");
AIRTIME.library.dblClickAdd(data, data.ftype);
}
},
);
$libTable
@ -1541,7 +1541,7 @@ var AIRTIME = (function (AIRTIME) {
} else if (ev.ctrlKey) {
flagForDeselection = true;
}
}
},
);
$libTable
@ -1572,7 +1572,7 @@ var AIRTIME = (function (AIRTIME) {
mod.selectNone();
mod.selectItem(tr);
}
}
},
);
$libTable
@ -1688,8 +1688,8 @@ var AIRTIME = (function (AIRTIME) {
if (
confirm(
$.i18n._(
"Are you sure you want to delete the selected item?"
)
"Are you sure you want to delete the selected item?",
),
)
) {
AIRTIME.library.fnDeleteItems(aMedia);
@ -1702,8 +1702,8 @@ var AIRTIME = (function (AIRTIME) {
if (
confirm(
$.i18n._(
"Are you sure you want to delete the selected item?"
)
"Are you sure you want to delete the selected item?",
),
)
) {
media.push({ id: data.id, type: data.ftype });
@ -1719,7 +1719,7 @@ var AIRTIME = (function (AIRTIME) {
oTable = $("#library_display").dataTable();
oTable.fnDeleteRow($tr[0]);
}
},
);
}
};
@ -1894,7 +1894,7 @@ var AIRTIME = (function (AIRTIME) {
validateConstraints: function () {
return true;
},
}
},
);
$.extend(
true,
@ -1908,7 +1908,7 @@ var AIRTIME = (function (AIRTIME) {
validateConstraints: function () {
return this.getSelectedRows().length >= 1;
},
}
},
);
$.extend(
true,
@ -1920,7 +1920,7 @@ var AIRTIME = (function (AIRTIME) {
validateConstraints: function () {
return this.getSelectedRows().length >= 1;
},
}
},
);
//Set up the div with id "podcast_table" as a datatable.
@ -1938,7 +1938,7 @@ var AIRTIME = (function (AIRTIME) {
fnDrawCallback: function () {
AIRTIME.library.drawEmptyPlaceholder(this);
},
}
},
);
// Edit podcast in right-side pane upon double click
@ -2146,7 +2146,7 @@ function readArtworkURL(input, id) {
reader.onload = function (e) {
$(".artwork-preview-" + id).css(
"background-image",
"url(" + e.target.result + ")"
"url(" + e.target.result + ")",
);
$(".artwork-preview-" + id).hide();
$(".artwork-preview-" + id).fadeIn(500);
@ -2225,7 +2225,7 @@ $(document).ready(function () {
var id = $(this).attr("data-id");
$(".artwork-preview-" + id).css(
"background-image",
"url(" + baseUrl + "css/images/no-cover.jpg)"
"url(" + baseUrl + "css/images/no-cover.jpg)",
);
$(".artwork-preview-" + id).hide();
$(".artwork-preview-" + id).fadeIn(500);
@ -2316,7 +2316,7 @@ $(document).ready(function () {
placeImage: function (data, id) {
$(".artwork-preview-" + id).css(
"background-image",
"url(" + data + ")"
"url(" + data + ")",
);
$(".artwork-preview-" + id).hide();
$(".artwork-preview-" + id).fadeIn(500);

View File

@ -48,10 +48,10 @@ $(document).ready(function () {
if (uploadProgress) {
return sprintf(
$.i18n._(
"You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?"
"You are currently uploading files. %sGoing to another screen will cancel the upload process. %sAre you sure you want to leave the page?",
),
"\n",
"\n"
"\n",
);
}
});
@ -104,8 +104,8 @@ $(document).ready(function () {
error: function () {
alert(
$.i18n._(
"Error: The file could not be deleted. Please try again later."
)
"Error: The file could not be deleted. Please try again later.",
),
);
},
});

View File

@ -94,7 +94,7 @@ var AIRTIME = (function (AIRTIME) {
// redraw list of smartblocks just in case they have it visible on the left
dt = $('table[id="library_display"]').dataTable();
dt.fnStandingRedraw();
}
},
);
};
/**
@ -178,7 +178,7 @@ var AIRTIME = (function (AIRTIME) {
* @type {PodcastController}
*/
StationPodcastController.prototype = Object.create(
PodcastController.prototype
PodcastController.prototype,
);
/**
@ -196,7 +196,7 @@ var AIRTIME = (function (AIRTIME) {
"/episodes/" +
this.id +
"?csrf_token=" +
$scope.csrf
$scope.csrf,
)
.success(function () {
self.reloadEpisodeTable();
@ -258,13 +258,13 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("You haven't published any episodes!") +
"<br/>" +
$.i18n._(
"You can publish your uploaded content from the 'Tracks' view."
"You can publish your uploaded content from the 'Tracks' view.",
) +
"<br/><a target='_parent' href='/showbuilder#tracks'>" +
$.i18n._("Try it now") +
"</a>",
},
}
},
);
mod.stationPodcastTable = this.episodeTable.getDatatable();
@ -339,7 +339,7 @@ var AIRTIME = (function (AIRTIME) {
$.post(
endpoint + "bulk",
{ csrf_token: $("#csrf").val(), method: method, ids: ids },
callback
callback,
);
}
}
@ -382,7 +382,7 @@ var AIRTIME = (function (AIRTIME) {
$(".album_names.help_icon").qtip({
content: {
text: $.i18n._(
'Overwrite downloaded podcast episodes\' "Album" and "Creator" metadata tag with the Podcast Name specified above and set the track title to the title of the Podcast Episode. This album name can then be used as a search criteria by a smartblock. '
'Overwrite downloaded podcast episodes\' "Album" and "Creator" metadata tag with the Podcast Name specified above and set the track title to the title of the Podcast Episode. This album name can then be used as a search criteria by a smartblock. ',
),
},
hide: {
@ -406,7 +406,7 @@ var AIRTIME = (function (AIRTIME) {
var episodeTable =
AIRTIME.podcast.initPodcastEpisodeDatatableWithButtonEvents(
$("#podcast_episodes_" + podcast.id),
podcast.id.toString()
podcast.id.toString(),
);
episodeTable.reload(podcast.id);
episodeTable.clearSelection();
@ -425,7 +425,7 @@ var AIRTIME = (function (AIRTIME) {
bItemSelection,
toolbarButtons,
dataTablesOptions,
config
config,
) {
this.config = config; // Internal configuration object
this._setupImportListener();
@ -436,11 +436,11 @@ var AIRTIME = (function (AIRTIME) {
bItemSelection,
toolbarButtons,
dataTablesOptions,
config.emptyPlaceholder
config.emptyPlaceholder,
);
}; // Subclass AIRTIME.widgets.Table
PodcastEpisodeTable.prototype = Object.create(
AIRTIME.widgets.Table.prototype
AIRTIME.widgets.Table.prototype,
);
PodcastEpisodeTable.prototype.constructor = PodcastEpisodeTable;
PodcastEpisodeTable.prototype._SELECTORS = Object.freeze({
@ -465,7 +465,7 @@ var AIRTIME = (function (AIRTIME) {
PodcastEpisodeTable.prototype._datatablesCheckboxDataDelegate = function (
rowData,
callType,
dataToSave
dataToSave,
) {
var defaultIcon = "<span class='icon icon-circle-arrow-down'></span>",
importIcon =
@ -488,7 +488,7 @@ var AIRTIME = (function (AIRTIME) {
this,
rowData,
callType,
dataToSave
dataToSave,
);
};
@ -615,7 +615,7 @@ var AIRTIME = (function (AIRTIME) {
// open newly created podcast in right-side edit pane
_initAppFromResponse(json);
}
},
).fail(function (e) {
var errors = $("#podcast_url_dialog").find(".errors");
errors.show(200).text(e.responseText);
@ -636,7 +636,7 @@ var AIRTIME = (function (AIRTIME) {
json.forEach(function (data) {
_initAppFromResponse(data);
});
}
},
);
};
@ -647,8 +647,8 @@ var AIRTIME = (function (AIRTIME) {
if (
confirm(
$.i18n._(
"Are you sure you want to delete the selected podcasts from your library?"
)
"Are you sure you want to delete the selected podcasts from your library?",
),
)
) {
_bulkAction(
@ -656,7 +656,7 @@ var AIRTIME = (function (AIRTIME) {
HTTPMethods.DELETE,
function () {
AIRTIME.library.podcastDataTable.fnDraw();
}
},
);
}
};
@ -676,7 +676,7 @@ var AIRTIME = (function (AIRTIME) {
{ format: "json" },
function (json) {
AIRTIME.playlist.fileMdEdit(json, uid);
}
},
);
});
};
@ -703,7 +703,7 @@ var AIRTIME = (function (AIRTIME) {
}),
function () {
dt.reload(dt.config.podcastId);
}
},
);
remainingDiskSpace -= this.enclosure.length;
@ -729,7 +729,7 @@ var AIRTIME = (function (AIRTIME) {
*/
mod.initPodcastEpisodeDatatableWithButtonEvents = function (
domNode,
podcastId
podcastId,
) {
/**
* Check the import statuses of each selected episode to see which
@ -767,14 +767,14 @@ var AIRTIME = (function (AIRTIME) {
var episodes = mod.episodeTables[podcastId].getSelectedRows();
AIRTIME.podcast.importSelectedEpisodes(
episodes,
mod.episodeTables[podcastId]
mod.episodeTables[podcastId],
);
},
},
validateConstraints: function () {
return checkSelectedEpisodeImportStatus.call(this, false);
},
}
},
);
$.extend(
true,
@ -789,7 +789,7 @@ var AIRTIME = (function (AIRTIME) {
validateConstraints: function () {
return checkSelectedEpisodeImportStatus.call(this, true);
},
}
},
);
$.extend(
true,
@ -808,7 +808,7 @@ var AIRTIME = (function (AIRTIME) {
validateConstraints: function () {
return checkSelectedEpisodeImportStatus.call(this, true);
},
}
},
);
// Reassign these because integer keys take precedence in iteration order - we want to order based on insertion
@ -874,13 +874,13 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("This podcast doesn't have any episodes!") +
"<br/>" +
$.i18n._(
"Make sure the RSS feed contains audio items (with enclosure tags)."
"Make sure the RSS feed contains audio items (with enclosure tags).",
) +
"<br/><a target='_blank' href='http://www.apple.com/ca/itunes/podcasts/specs.html'>" +
$.i18n._("Learn about podcasts") +
"</a>",
},
}
},
);
mod.podcastEpisodeDataTable = mod.episodeTables[podcastId].getDatatable();
@ -893,7 +893,7 @@ var AIRTIME = (function (AIRTIME) {
// Only import if the file isn't pending
AIRTIME.podcast.importSelectedEpisodes(
[data],
mod.episodeTables[podcastId]
mod.episodeTables[podcastId],
);
}
}
@ -918,7 +918,7 @@ var AIRTIME = (function (AIRTIME) {
domNode,
params,
buttons,
config
config,
) {
params = $.extend(true, params, {
aoColumns: [
@ -991,7 +991,7 @@ var AIRTIME = (function (AIRTIME) {
this,
data,
self.SELECTION_MODE.SINGLE,
$row.index()
$row.index(),
);
var selected = self.getSelectedRows().length,
container,
@ -1002,7 +1002,7 @@ var AIRTIME = (function (AIRTIME) {
message = sprintf(
$.i18n._(selected > 1 ? "Adding %s Items" : "Adding %s Item"),
selected
selected,
);
container = $("<div/>")
.attr("id", "draggingContainer")
@ -1028,7 +1028,7 @@ var AIRTIME = (function (AIRTIME) {
},
distance: 25, // min-distance for dragging
connectToSortable: $(
"#show_builder_table, .active-tab .spl_sortable"
"#show_builder_table, .active-tab .spl_sortable",
),
});
}
@ -1054,7 +1054,7 @@ var AIRTIME = (function (AIRTIME) {
true, // Enable item selection
buttons, // Toolbar buttons
params, // Datatables overrides.
config // Internal config
config, // Internal config
);
podcastEpisodeTableObj.getDatatable().addTitles("td");

View File

@ -74,7 +74,7 @@ var AIRTIME = (function (AIRTIME) {
{ format: "json" },
function (json) {
AIRTIME.playlist.fileMdEdit(json, uid);
}
},
);
};
@ -161,7 +161,7 @@ var AIRTIME = (function (AIRTIME) {
var tab = AIRTIME.tabs.openTab(
html,
PUBLISH_APP_NAME + "_" + mediaId,
null
null,
);
_bootstrapAngularApp(mediaId, tab);
});

View File

@ -16,7 +16,7 @@ var AIRTIME = (function (AIRTIME) {
function isTimeValid(time) {
//var regExpr = new RegExp("^\\d{2}[:]\\d{2}[:]\\d{2}([.]\\d{1,6})?$");
var regExpr = new RegExp(
"^\\d{2}[:]([0-5]){1}([0-9]){1}[:]([0-5]){1}([0-9]){1}([.]\\d{1})?$"
"^\\d{2}[:]([0-5]){1}([0-9]){1}[:]([0-5]){1}([0-9]){1}([.]\\d{1})?$",
);
return regExpr.test(time);
@ -87,7 +87,7 @@ var AIRTIME = (function (AIRTIME) {
li.find(".cue-edit").toggle();
highlightActive(li);
highlightActive(li.find(".spl_cue"));
}
},
);
}
@ -126,7 +126,7 @@ var AIRTIME = (function (AIRTIME) {
li.find(".cue-edit").toggle();
highlightActive(li);
highlightActive(li.find(".spl_cue"));
}
},
);
}
@ -201,7 +201,7 @@ var AIRTIME = (function (AIRTIME) {
li.find(".cue-edit").toggle();
highlightActive(li);
highlightActive(li.find(".spl_cue"));
}
},
);
}
@ -237,7 +237,7 @@ var AIRTIME = (function (AIRTIME) {
$li = $pl.find("li[unqid=" + id + "]");
$li.find(".crossfade").toggle();
highlightActive($li.find(".spl_fade_control"));
}
},
);
}
@ -256,7 +256,7 @@ var AIRTIME = (function (AIRTIME) {
if (!isFadeValid(fadeIn)) {
showError(
span,
$.i18n._("Please enter a valid time in seconds. Eg. 0.5")
$.i18n._("Please enter a valid time in seconds. Eg. 0.5"),
);
return;
} else {
@ -281,7 +281,7 @@ var AIRTIME = (function (AIRTIME) {
li = $pl.find("li[unqid=" + unqid + "]");
li.find(".crossfade").toggle();
highlightActive(li.find(".spl_fade_control"));
}
},
);
}
@ -300,7 +300,7 @@ var AIRTIME = (function (AIRTIME) {
if (!isFadeValid(fadeOut)) {
showError(
span,
$.i18n._("Please enter a valid time in seconds. Eg. 0.5")
$.i18n._("Please enter a valid time in seconds. Eg. 0.5"),
);
return;
} else {
@ -331,7 +331,7 @@ var AIRTIME = (function (AIRTIME) {
li = $pl.find("li[unqid=" + unqid + "]");
li.find(".crossfade").toggle();
highlightActive(li.find(".spl_fade_control"));
}
},
);
}
@ -427,7 +427,7 @@ var AIRTIME = (function (AIRTIME) {
$(".zend_form + .spl-no-margin > div:has(*:visible):last").css(
"margin-left",
0
0,
);
};
@ -476,7 +476,7 @@ var AIRTIME = (function (AIRTIME) {
$(value).qtip({
content:
$.i18n._(
"Your browser does not support playing this file type: "
"Your browser does not support playing this file type: ",
) + mime,
show: "mouseover",
hide: {
@ -637,8 +637,8 @@ var AIRTIME = (function (AIRTIME) {
.parent()
.html(
$.i18n._(
"Waveform features are available in a browser supporting the Web Audio API"
)
"Waveform features are available in a browser supporting the Web Audio API",
),
);
}
}
@ -659,8 +659,8 @@ var AIRTIME = (function (AIRTIME) {
.parent()
.html(
$.i18n._(
"Waveform features are available in a browser supporting the Web Audio API"
)
"Waveform features are available in a browser supporting the Web Audio API",
),
);
}
}
@ -711,7 +711,7 @@ var AIRTIME = (function (AIRTIME) {
$pl.find("#crossfade_main").show();
}
}
}
},
);
}
});
@ -728,7 +728,7 @@ var AIRTIME = (function (AIRTIME) {
if (!isFadeValid(fadeIn)) {
showError(
input,
$.i18n._("Please enter a valid time in seconds. Eg. 0.5")
$.i18n._("Please enter a valid time in seconds. Eg. 0.5"),
);
return;
} else {
@ -742,7 +742,7 @@ var AIRTIME = (function (AIRTIME) {
if (json.modified !== undefined) {
mod.setModified(json.modified);
}
}
},
);
});
@ -758,7 +758,7 @@ var AIRTIME = (function (AIRTIME) {
if (!isFadeValid(fadeOut)) {
showError(
input,
$.i18n._("Please enter a valid time in seconds. Eg. 0.5")
$.i18n._("Please enter a valid time in seconds. Eg. 0.5"),
);
return;
} else {
@ -773,14 +773,14 @@ var AIRTIME = (function (AIRTIME) {
if (json.modified !== undefined) {
mod.setModified(json.modified);
}
}
},
);
});
$pl.on(
"keydown",
"span.spl_main_fade_in, span.spl_main_fade_out",
submitOnEnter
submitOnEnter,
);
$pl.on("click", "#crossfade_main > .ui-icon-closethick", function () {
@ -887,7 +887,7 @@ var AIRTIME = (function (AIRTIME) {
//redraw the library to show the new webstream
redrawLib();
}
}
},
);
});
@ -1004,7 +1004,7 @@ var AIRTIME = (function (AIRTIME) {
}
mod.setFadeIcon();
disableLoadingIcon();
}
},
);
});
@ -1149,7 +1149,7 @@ var AIRTIME = (function (AIRTIME) {
if ($("#schedule_calendar").length === 0) {
oTable.fnStandingRedraw();
}
}
},
);
newTab.close();
@ -1179,7 +1179,7 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
uid,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
redrawLib();
});
@ -1195,7 +1195,7 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
uid,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
redrawLib();
});
@ -1211,7 +1211,7 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
uid,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
redrawLib();
});
@ -1231,10 +1231,10 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
data.tr_id,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
redrawLib();
}
},
);
};
@ -1256,7 +1256,7 @@ var AIRTIME = (function (AIRTIME) {
{ format: "json", ids: id, modified: lastMod, type: type },
function (json) {
redrawLib();
}
},
);
};
@ -1277,10 +1277,10 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
uid,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
redrawLib();
}
},
);
};
@ -1330,7 +1330,7 @@ var AIRTIME = (function (AIRTIME) {
AIRTIME.tabs.openTab(
json.html,
uid,
AIRTIME.playlist._initPlaylistTabEvents
AIRTIME.playlist._initPlaylistTabEvents,
);
};
@ -1659,9 +1659,9 @@ var AIRTIME = (function (AIRTIME) {
content: {
text: sprintf(
$.i18n._(
"%s is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore."
"%s is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn't 'watched' anymore.",
),
PRODUCT_NAME
PRODUCT_NAME,
),
},
position: {

View File

@ -18,7 +18,7 @@ $(document).ready(function () {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
var start = oRange.start;
var end = oRange.end;
@ -57,7 +57,7 @@ function getDataAndPlot(startTimestamp, endTimestamp) {
plot(out);
// Turn off the processing overlay
toggleOverlay();
}
},
);
}
@ -184,8 +184,8 @@ function plot(datasets) {
sprintf(
$.i18n._("Listener Count on %s: %s"),
item.series.label,
Math.floor(y)
)
Math.floor(y),
),
);
}
} else {

View File

@ -17,7 +17,7 @@ $(document).ready(function () {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
var start = oRange.start;
var end = oRange.end;
@ -32,7 +32,7 @@ function getShowData(startTimestamp, endTimestamp, show_id) {
{ start: startTimestamp, end: endTimestamp },
function (data) {
return data;
}
},
);
}
@ -81,7 +81,7 @@ function getStartEnd() {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
}
@ -96,7 +96,7 @@ function validateTimeRange() {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
start = oRange.start;
@ -123,7 +123,7 @@ function showListenerDataTable() {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
var start = oRange.start;
var lengthMenu = [

View File

@ -136,7 +136,7 @@ $(document).ready(function () {
ul = logoEl.find(".errors");
li = $("<li/>").append(
$.i18n._("Image must be one of jpg, jpeg, png, or gif")
$.i18n._("Image must be one of jpg, jpeg, png, or gif"),
);
//errors ul has already been created.

View File

@ -16,7 +16,7 @@ function playerhtml5_insert(settings) {
settings.replacePortTo = ":" + settings.replacePortTo;
settings.url = settings.url.replace(
":" + settings.replacePort,
settings.replacePortTo
settings.replacePortTo,
);
}
if (settings.codec == "mp3") settings.codec = "mpeg";

View File

@ -184,7 +184,7 @@ function setSmartBlockEvents() {
.val(criteria_datetime);
disableAndHideDateTimeDropdown(
next.find("first-child"),
getRowIndex(next)
getRowIndex(next),
);
/* if only the current row has the extra criteria value,
* then just remove the current row's extra criteria element
@ -224,7 +224,7 @@ function setSmartBlockEvents() {
.val(extra_criteria_datetime);
disableAndHideExtraDateTimeDropdown(
next.find("first-child"),
getRowIndex(next)
getRowIndex(next),
);
/* if only the current row has the extra criteria value,
* then just remove the current row's extra criteria element
@ -325,7 +325,7 @@ function setSmartBlockEvents() {
sizeTextBoxes(
item_to_hide.find('[name^="sp_criteria_value"]'),
"sp_extra_input_text",
"sp_input_text"
"sp_input_text",
);
item_to_hide.hide();
@ -396,7 +396,7 @@ function setSmartBlockEvents() {
/********** CRITERIA CHANGE **********/
form
.find(
'select[id^="sp_criteria"]:not([id^="sp_criteria_modifier"]):not([id^="sp_criteria_datetime"]):not([id^="sp_criteria_extra_datetime"]):not([id^="sp_criteria_value"])'
'select[id^="sp_criteria"]:not([id^="sp_criteria_modifier"]):not([id^="sp_criteria_datetime"]):not([id^="sp_criteria_extra_datetime"]):not([id^="sp_criteria_value"])',
)
.live("change", function () {
var index = getRowIndex($(this).parent());
@ -611,7 +611,7 @@ function buttonClickAction(clickType, url) {
function (data) {
callback(data, clickType);
disableLoadingIcon();
}
},
);
}
@ -660,11 +660,11 @@ function setupUI() {
content: {
text:
$.i18n._(
"A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show."
"A static smart block will save the criteria and generate the block content immediately. This allows you to edit and view it in the Library before adding it to a show.",
) +
"<br /><br />" +
$.i18n._(
"A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library."
"A dynamic smart block will only save the criteria. The block content will get generated upon adding it to a show. You will not be able to view and edit the content in the Library.",
),
},
hide: {
@ -688,9 +688,9 @@ function setupUI() {
content: {
text: sprintf(
$.i18n._(
"The desired block length will not be reached if %s cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block."
"The desired block length will not be reached if %s cannot find enough unique tracks to match your criteria. Enable this option if you wish to allow tracks to be added multiple times to the smart block.",
),
PRODUCT_NAME
PRODUCT_NAME,
),
},
hide: {
@ -714,9 +714,9 @@ function setupUI() {
content: {
text: sprintf(
$.i18n._(
"<p>If this option is unchecked, the smartblock will schedule as many tracks as can be played out <strong>in their entirety</strong> within the specified duration. This will usually result in audio playback that is slightly less than the specified duration.</p><p>If this option is checked, the smartblock will also schedule one final track which will overflow the specified duration. This final track may be cut off mid-way if the show into which the smartblock is added finishes.</p>"
"<p>If this option is unchecked, the smartblock will schedule as many tracks as can be played out <strong>in their entirety</strong> within the specified duration. This will usually result in audio playback that is slightly less than the specified duration.</p><p>If this option is checked, the smartblock will also schedule one final track which will overflow the specified duration. This final track may be cut off mid-way if the show into which the smartblock is added finishes.</p>",
),
PRODUCT_NAME
PRODUCT_NAME,
),
},
hide: {
@ -752,11 +752,11 @@ function enableAndShowTracktypeDropdown(valEle, index) {
index +
'" id="sp_criteria_value_' +
index +
'" class="input_select sp_input_select"></select>'
'" class="input_select sp_input_select"></select>',
);
$.each(stringTracktypeOptions, function (key, value) {
$("#sp_criteria_value_" + index).append(
$("<option></option>").attr("value", key).text(value)
$("<option></option>").attr("value", key).text(value),
);
});
}
@ -768,7 +768,7 @@ function disableAndHideTracktypeDropdown(valEle, index) {
index +
'" id="sp_criteria_value_' +
index +
'" value="" class="input_text sp_input_text">'
'" value="" class="input_text sp_input_text">',
);
}
@ -1151,5 +1151,5 @@ for (var key in TRACKTYPES) {
var stringTracktypeOptions = Object.assign(
{ 0: "Select Track Type" },
tracktypes
tracktypes,
);

View File

@ -143,7 +143,7 @@ var AIRTIME = (function (AIRTIME) {
},
function (json) {
var x;
}
},
);
}

View File

@ -36,7 +36,7 @@ var AIRTIME = (function (AIRTIME) {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
start = oRange.start;
@ -251,7 +251,7 @@ var AIRTIME = (function (AIRTIME) {
"<i class='icon-white icon-plus'></i>" +
$.i18n._("New Log Entry") +
"</button>" +
"</div>"
"</div>",
);
$menu.append(
@ -271,7 +271,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Deselect all") +
"</a></li>" +
"</ul>" +
"</div>"
"</div>",
);
$menu.append(
@ -288,7 +288,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Export as PDF") +
"</a></li>" +
"</ul>" +
"</div>"
"</div>",
);
$menu.append(
@ -296,7 +296,7 @@ var AIRTIME = (function (AIRTIME) {
"<button class='btn btn-small' id='his_trash'>" +
"<i class='icon-white icon-trash'></i>" +
"</button>" +
"</div>"
"</div>",
);
$el.append($menu);
@ -317,7 +317,7 @@ var AIRTIME = (function (AIRTIME) {
};
columns = JSON.parse(
localStorage.getItem("datatables-historyfile-aoColumns")
localStorage.getItem("datatables-historyfile-aoColumns"),
);
oTable = $historyTableDiv.dataTable({
@ -331,7 +331,7 @@ var AIRTIME = (function (AIRTIME) {
fnRowCallback: fnRowCallback,
oLanguage: getDatatablesStrings({
sEmptyTable: $.i18n._(
"No tracks were played during the selected time period."
"No tracks were played during the selected time period.",
),
sInfoEmpty: $.i18n._("Showing 0 to 0 of 0 tracks"),
sInfo: $.i18n._("Showing _START_ to _END_ of _TOTAL_ tracks"),
@ -361,7 +361,7 @@ var AIRTIME = (function (AIRTIME) {
c;
columns = JSON.parse(
localStorage.getItem("datatables-historyitem-aoColumns")
localStorage.getItem("datatables-historyitem-aoColumns"),
);
for (i in columns) {
@ -409,7 +409,7 @@ var AIRTIME = (function (AIRTIME) {
fnRowCallback: fnRowCallback,
oLanguage: getDatatablesStrings({
sEmptyTable: $.i18n._(
"No tracks were played during the selected time period."
"No tracks were played during the selected time period.",
),
sInfoEmpty: $.i18n._("Showing 0 to 0 of 0 tracks"),
sInfo: $.i18n._("Showing _START_ to _END_ of _TOTAL_ tracks"),
@ -562,14 +562,14 @@ var AIRTIME = (function (AIRTIME) {
".his-timerange .ui-button",
function (ev) {
$(this).addClass("ui-state-hover");
}
},
);
$historyContentDiv.on(
"mouseleave",
".his-timerange .ui-button",
function (ev) {
$(this).removeClass("ui-state-hover");
}
},
);
oBaseDatePickerSettings = {
@ -624,7 +624,7 @@ var AIRTIME = (function (AIRTIME) {
function (json) {
makeHistoryDialog(json.dialog);
},
"json"
"json",
);
});
@ -791,7 +791,7 @@ var AIRTIME = (function (AIRTIME) {
redrawTables();
}
},
"json"
"json",
);
});
@ -839,7 +839,7 @@ var AIRTIME = (function (AIRTIME) {
redrawTables();
}
},
"json"
"json",
);
});
@ -901,7 +901,7 @@ var AIRTIME = (function (AIRTIME) {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
}
@ -981,7 +981,7 @@ var AIRTIME = (function (AIRTIME) {
function (json) {
makeHistoryDialog(json.dialog);
},
"json"
"json",
);
};

View File

@ -43,7 +43,7 @@ var AIRTIME = (function (AIRTIME) {
editUrl: editUrl,
defaultUrl: defaultUrl,
removeUrl: removeUrl,
})
}),
);
return $li;
@ -75,10 +75,10 @@ var AIRTIME = (function (AIRTIME) {
$newLi = $a.parents("li");
$oldLi.replaceWith(
createItemLi($oldLi.data("template"), $oldLi.data("name"), false)
createItemLi($oldLi.data("template"), $oldLi.data("name"), false),
);
$newLi.replaceWith(
createItemLi($newLi.data("template"), $newLi.data("name"), true)
createItemLi($newLi.data("template"), $newLi.data("name"), true),
);
$.post(url, function () {

View File

@ -46,10 +46,10 @@ function setWatchedDirEvents() {
confirm(
sprintf(
$.i18n._(
"Are you sure you want to change the storage folder?\nThis will remove the files from your %s library!"
"Are you sure you want to change the storage folder?\nThis will remove the files from your %s library!",
),
PRODUCT_NAME
)
PRODUCT_NAME,
),
)
) {
url = baseUrl + "Preference/change-stor-directory";
@ -63,7 +63,7 @@ function setWatchedDirEvents() {
$("#watched-folder-section").empty();
$("#watched-folder-section").append(json.subform);
setWatchedDirEvents();
}
},
);
} else {
$("#storageFolder").val("");
@ -83,11 +83,11 @@ function setWatchedDirEvents() {
function (json) {
$("#watched-folder-section").empty();
$("#watched-folder-section").append(
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>"
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>",
);
$("#watched-folder-section").append(json.subform);
setWatchedDirEvents();
}
},
);
});
@ -119,11 +119,11 @@ function setWatchedDirEvents() {
function (json) {
$("#watched-folder-section").empty();
$("#watched-folder-section").append(
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>"
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>",
);
$("#watched-folder-section").append(json.subform);
setWatchedDirEvents();
}
},
);
}
});

View File

@ -119,13 +119,13 @@ function removeLogo() {
function (json) {
// Reload without resubmitting the form
location.href = location.href.replace(location.hash, "");
}
},
);
}
function deleteAllFiles() {
var resp = confirm(
$.i18n._("Are you sure you want to delete all the tracks in your library?")
$.i18n._("Are you sure you want to delete all the tracks in your library?"),
);
if (resp) {
$.post(
@ -133,7 +133,7 @@ function deleteAllFiles() {
{ csrf_token: $("#csrf").val() },
function (json) {
location.reload();
}
},
);
}
}

View File

@ -201,16 +201,16 @@ function setupEventListeners() {
text:
sprintf(
$.i18n._(
"If %s is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151."
"If %s is behind a router or firewall, you may need to configure port forwarding and this field information will be incorrect. In this case you will need to manually update this field so it shows the correct host/port/mount that your DJ's need to connect to. The allowed range is between 1024 and 49151.",
),
PRODUCT_NAME
PRODUCT_NAME,
) +
" " +
sprintf(
$.i18n._("For more details, please read the %s%s Manual%s"),
userManualAnchorOpen,
PRODUCT_NAME,
"</a>"
"</a>",
),
},
hide: {
@ -233,7 +233,7 @@ function setupEventListeners() {
$(".icecast_metadata_help_icon").qtip({
content: {
text: $.i18n._(
"Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option."
"Check this option to enable metadata for OGG streams (stream metadata is the track title, artist, and show name that is displayed in an audio player). VLC and mplayer have a serious bug when playing an OGG/VORBIS stream that has metadata information enabled: they will disconnect from the stream after every song. If you are using an OGG stream and your listeners do not require support for these audio players, then feel free to enable this option.",
),
},
hide: {
@ -256,7 +256,7 @@ function setupEventListeners() {
$("#auto_transition_help").qtip({
content: {
text: $.i18n._(
"Check this box to automatically switch off Master/Show source upon source disconnection."
"Check this box to automatically switch off Master/Show source upon source disconnection.",
),
},
hide: {
@ -279,7 +279,7 @@ function setupEventListeners() {
$("#auto_switch_help").qtip({
content: {
text: $.i18n._(
"Check this box to automatically switch on Master/Show source upon source connection."
"Check this box to automatically switch on Master/Show source upon source connection.",
),
},
hide: {
@ -302,7 +302,7 @@ function setupEventListeners() {
$(".stream_username_help_icon").qtip({
content: {
text: $.i18n._(
"If your Icecast server expects a username of 'source', this field can be left blank."
"If your Icecast server expects a username of 'source', this field can be left blank.",
),
},
hide: {
@ -325,7 +325,7 @@ function setupEventListeners() {
$(".admin_username_help_icon").qtip({
content: {
text: $.i18n._(
"This is the admin username and password for Icecast/SHOUTcast to get listener statistics."
"This is the admin username and password for Icecast/SHOUTcast to get listener statistics.",
),
},
hide: {
@ -348,7 +348,7 @@ function setupEventListeners() {
$(".master_username_help_icon").qtip({
content: {
text: $.i18n._(
"If your live streaming client does not ask for a username, this field should be 'source'."
"If your live streaming client does not ask for a username, this field should be 'source'.",
),
},
hide: {
@ -372,12 +372,12 @@ function setupEventListeners() {
content: {
text: sprintf(
$.i18n._(
"Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided."
"Some stream types require extra configuration. Details about enabling %sAAC+ Support%s or %sOpus Support%s are provided.",
),
"<a target='_blank' href='https://wiki.sourcefabric.org/x/NgPQ'>",
"</a>",
"<a target='_blank' href='https://wiki.sourcefabric.org/x/KgPQ'>",
"</a>"
"</a>",
),
},
hide: {
@ -462,6 +462,6 @@ $(document).ready(function () {
setSliderForReplayGain();
getAdminPasswordStatus();
});
}
},
);
});

View File

@ -47,7 +47,7 @@ function makeAddShowButton() {
$.i18n._("New Show") +
"</span>" +
"</button>" +
"</span>"
"</span>",
);
}
}
@ -196,7 +196,7 @@ function findHosts(request, callback) {
} else {
callback(json.hosts);
}
}
},
);
}
@ -314,12 +314,12 @@ function setAddShowEvents(form) {
// If we're adding a new show or the show has no logo, hide the "Current Logo" element tree
$("[id^=add_show_logo_current]").toggle(
$("#add_show_logo_current").attr("src") !== "" &&
$(".button-bar.bottom").find(".ui-button-text").text() === "Update show"
$(".button-bar.bottom").find(".ui-button-text").text() === "Update show",
);
var submitButton = $(".button-bar.bottom").find(".add-show-submit");
$("[id^=add_show_instance_description]").toggle(
submitButton.attr("data-action") === "edit-repeating-show-instance"
submitButton.attr("data-action") === "edit-repeating-show-instance",
);
form.find("#add_show_has_autoplaylist").click(function () {
@ -342,7 +342,7 @@ function setAddShowEvents(form) {
if (!checkBoxSelected) {
var d = getDateFromString(
form.find("#add_show_start_date").attr("value")
form.find("#add_show_start_date").attr("value"),
);
if (d != null)
form.find("#add_show_day_check-" + d.getDay()).attr("checked", true);
@ -368,9 +368,9 @@ function setAddShowEvents(form) {
.after(
"<ul id='show-link-readonly-warning' class='errors'><li>" +
$.i18n._(
"Warning: You cannot change this field while the show is currently playing"
"Warning: You cannot change this field while the show is currently playing",
) +
"</li></ul>"
"</li></ul>",
);
}
return false;
@ -386,9 +386,9 @@ function setAddShowEvents(form) {
.after(
"<ul id='show-link-warning' class='errors'><li>" +
$.i18n._(
"Warning: All other repetitions of this show will have their contents replaced to match the show you selected 'Edit Show' with."
"Warning: All other repetitions of this show will have their contents replaced to match the show you selected 'Edit Show' with.",
) +
"</li></ul>"
"</li></ul>",
);
}
@ -476,7 +476,7 @@ function setAddShowEvents(form) {
endTimeField.val(json.end.time);
// Change the timezone now that we've updated the times
currentTimezone = newTimezone;
}
},
);
});
@ -506,13 +506,13 @@ function setAddShowEvents(form) {
if (form.find("#add_show_repeat_type").val() == 2) {
form
.find(
"#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element"
"#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element",
)
.show();
} else {
form
.find(
"#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element"
"#add_show_monthly_repeat_type-label, #add_show_monthly_repeat_type-element",
)
.hide();
}
@ -527,7 +527,7 @@ function setAddShowEvents(form) {
content: {
text: $.i18n._(
"Timezone is set to the station timezone by default. Shows in the calendar will be displayed in your local time defined by the " +
"Interface Timezone in your user settings."
"Interface Timezone in your user settings.",
),
},
hide: {
@ -550,7 +550,7 @@ function setAddShowEvents(form) {
form.find(".show_autoplaylist_help_icon").qtip({
content: {
text: $.i18n._(
"Autoloading playlists' contents are added to shows one hour before the show airs. <a target='_blank' href='https://libretime.org/docs/user-manual/playlists/'>More information</a>"
"Autoloading playlists' contents are added to shows one hour before the show airs. <a target='_blank' href='https://libretime.org/docs/user-manual/playlists/'>More information</a>",
),
},
hide: {
@ -573,7 +573,7 @@ function setAddShowEvents(form) {
form.find(".airtime_auth_help_icon").qtip({
content: {
text: $.i18n._(
"This follows the same security pattern for the shows: only users assigned to the show can connect."
"This follows the same security pattern for the shows: only users assigned to the show can connect.",
),
},
hide: {
@ -595,7 +595,7 @@ function setAddShowEvents(form) {
form.find(".custom_auth_help_icon").qtip({
content: {
text: $.i18n._(
"Specify custom authentication which will work only for this show."
"Specify custom authentication which will work only for this show.",
),
},
hide: {
@ -617,7 +617,7 @@ function setAddShowEvents(form) {
form.find(".stream_username_help_icon").qtip({
content: {
text: $.i18n._(
"If your live streaming client does not ask for a username, this field should be 'source'."
"If your live streaming client does not ask for a username, this field should be 'source'.",
),
},
hide: {
@ -639,7 +639,7 @@ function setAddShowEvents(form) {
form.find(".show_linking_help_icon").qtip({
content: {
text: $.i18n._(
"By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows"
"By linking your repeating shows any media items scheduled in any repeat show will also get scheduled in the other repeat shows",
),
},
hide: {
@ -933,7 +933,7 @@ function setAddShowEvents(form) {
{ format: "json" },
function (json) {
redrawAddShowForm($addShowForm, json.form);
}
},
);
} else {
redrawAddShowForm($addShowForm, json.newForm);
@ -970,7 +970,7 @@ function setAddShowEvents(form) {
startTime[0],
startTime[1],
0,
0
0,
);
var endDateString = $("#add_show_end_date_no_repeat").val();
@ -984,7 +984,7 @@ function setAddShowEvents(form) {
endTime[0],
endTime[1],
0,
0
0,
);
if (startDateTime.getTime() >= endDateTime.getTime()) {
@ -1024,7 +1024,7 @@ function setAddShowEvents(form) {
var timezone = $("#add_show_timezone").val();
calculateDuration(startDateTimeString, endDateTimeString, timezone);
}
}
},
);
// when end date/time changes, check if the changed date is in past of start date/time
@ -1047,7 +1047,7 @@ function setAddShowEvents(form) {
startTime[0],
startTime[1],
0,
0
0,
);
var endDate = endDateString.split("-");
@ -1059,7 +1059,7 @@ function setAddShowEvents(form) {
endTime[0],
endTime[1],
0,
0
0,
);
if (startDateTime.getTime() > endDateTime.getTime()) {
@ -1076,7 +1076,7 @@ function setAddShowEvents(form) {
var timezone = $("#add_show_timezone").val();
calculateDuration(startDateTimeString, endDateTimeString, timezone);
}
}
},
);
if ($("#cb_custom_auth").attr("checked")) {
@ -1103,7 +1103,7 @@ function setAddShowEvents(form) {
function (data) {
$("#add_show_duration").val(JSON.parse(data));
loadingIcon.hide();
}
},
);
}

View File

@ -60,14 +60,14 @@ function dayClick(date, allDay, jsEvent, view) {
now.getMonth(),
now.getDate(),
now.getHours(),
now.getMinutes()
now.getMinutes(),
);
selected = new Date(
date.getFullYear(),
date.getMonth(),
date.getDate(),
date.getHours(),
date.getMinutes()
date.getMinutes(),
);
}
@ -202,7 +202,7 @@ function viewDisplay(view) {
var slotMin = view.calendar.options.slotMinutes;
$('.schedule_change_slots option[value="' + slotMin + '"]').attr(
"selected",
"selected"
"selected",
);
}
@ -257,7 +257,7 @@ function eventRender(event, element, view) {
$(element)
.find(".fc-event-time")
.before(
'<span class="small-icon linked"></span><span class="small-icon show-empty"></span>'
'<span class="small-icon linked"></span><span class="small-icon show-empty"></span>',
);
// in theory a linked show shouldn't have an automatic playlist so adding this here
} else if (event.show_has_auto_playlist === true) {
@ -274,7 +274,7 @@ function eventRender(event, element, view) {
$(element)
.find(".fc-event-time")
.before(
'<span class="small-icon linked"></span><span class="small-icon show-partial-filled"></span>'
'<span class="small-icon linked"></span><span class="small-icon show-partial-filled"></span>',
);
} else if (event.show_has_auto_playlist === true) {
$(element)
@ -290,7 +290,7 @@ function eventRender(event, element, view) {
$(element)
.find(".fc-event-time")
.before(
'<span class="small-icon linked"></span><span class="small-icon show-overbooked"></span>'
'<span class="small-icon linked"></span><span class="small-icon show-overbooked"></span>',
);
} else if (event.show_has_auto_playlist === true) {
$(element)
@ -320,7 +320,7 @@ function eventRender(event, element, view) {
.after(
'<span class="small-icon linked"></span><span title="' +
$.i18n._("Show is empty") +
'" class="small-icon show-empty"></span>'
'" class="small-icon show-empty"></span>',
);
} else if (event.show_has_auto_playlist === true) {
$(element)
@ -328,7 +328,7 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._("Show has an automatic playlist") +
'"class="small-icon autoplaylist"></span>'
'"class="small-icon autoplaylist"></span>',
);
} else {
$(element)
@ -336,7 +336,7 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._("Show is empty") +
'" class="small-icon show-empty"></span>'
'" class="small-icon show-empty"></span>',
);
}
} else if (event.show_partial_filled === true) {
@ -346,7 +346,7 @@ function eventRender(event, element, view) {
.after(
'<span class="small-icon linked"></span><span title="' +
$.i18n._("Show is partially filled") +
'" class="small-icon show-partial-filled"></span>'
'" class="small-icon show-partial-filled"></span>',
);
} else if (event.show_has_auto_playlist === true) {
$(element)
@ -354,7 +354,7 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._("Show has an automatic playlist") +
'"class="small-icon autoplaylist"></span>'
'"class="small-icon autoplaylist"></span>',
);
} else {
$(element)
@ -362,7 +362,7 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._("Show is partially filled") +
'" class="small-icon show-partial-filled"></span>'
'" class="small-icon show-partial-filled"></span>',
);
}
} else if (event.percent > 100) {
@ -372,9 +372,9 @@ function eventRender(event, element, view) {
.after(
'<span class="small-icon linked"></span><span title="' +
$.i18n._(
"Shows longer than their scheduled time will be cut off by a following show."
"Shows longer than their scheduled time will be cut off by a following show.",
) +
'" class="small-icon show-overbooked"></span>'
'" class="small-icon show-overbooked"></span>',
);
} else if (event.show_has_auto_playlist === true) {
$(element)
@ -382,7 +382,7 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._("Show has an automatic playlist") +
'"class="small-icon autoplaylist"></span>'
'"class="small-icon autoplaylist"></span>',
);
} else {
$(element)
@ -390,9 +390,9 @@ function eventRender(event, element, view) {
.after(
'<span title="' +
$.i18n._(
"Shows longer than their scheduled time will be cut off by a following show."
"Shows longer than their scheduled time will be cut off by a following show.",
) +
'" class="small-icon show-overbooked"></span>'
'" class="small-icon show-overbooked"></span>',
);
}
} else {
@ -450,7 +450,7 @@ function eventDrop(
revertFunc,
jsEvent,
ui,
view
view,
) {
var url = baseUrl + "Schedule/move-show/format/json";
@ -470,7 +470,7 @@ function eventDrop(
//time changes in a different way than Airtime does.
//(Airtime preserves show duration, FullCalendar doesn't.)
scheduleRefetchEvents(json);
}
},
);
}
@ -481,7 +481,7 @@ function eventResize(
revertFunc,
jsEvent,
ui,
view
view,
) {
var url = baseUrl + "Schedule/resize-show/format/json";
@ -503,7 +503,7 @@ function eventResize(
}
scheduleRefetchEvents(json);
}
},
);
}
@ -537,7 +537,7 @@ function getFullCalendarEvents(start, end, callback) {
function (json) {
callback(json.events);
getUsabilityHint();
}
},
);
}
@ -641,7 +641,7 @@ function addQtipsToIcons(ele, id) {
$(ele).qtip({
content: {
text: $.i18n._(
"Shows longer than their scheduled time will be cut off by a following show."
"Shows longer than their scheduled time will be cut off by a following show.",
),
},
position: {

View File

@ -147,7 +147,7 @@ function buildTimerange(dialog) {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
AIRTIME.showbuilder.fnServerData.start = oRange.start;
AIRTIME.showbuilder.fnServerData.end = oRange.end;
@ -354,7 +354,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
buildScheduleDialog(json, data.id);
}
},
);
};
@ -370,7 +370,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
scheduleRefetchEvents(json);
}
},
);
}
};
@ -394,7 +394,7 @@ $(document).ready(function () {
},
function (json) {
beginEditShow(json);
}
},
);
};
edit.instance.callback = callback;
@ -411,7 +411,7 @@ $(document).ready(function () {
},
function (json) {
beginEditShow(json);
}
},
);
};
edit.all.callback = callback;
@ -427,7 +427,7 @@ $(document).ready(function () {
},
function (json) {
beginEditShow(json);
}
},
);
};
oItems.edit.callback = callback;
@ -442,7 +442,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
buildContentDialog(json);
}
},
);
};
oItems.content.callback = callback;
@ -465,7 +465,7 @@ $(document).ready(function () {
function (json) {
//in library.js
buildEditMetadataDialog(json);
}
},
);
};
oItems.view_recorded.callback = callback;
@ -492,7 +492,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
scheduleRefetchEvents(json);
}
},
);
};
del.single.callback = callback;
@ -504,7 +504,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
scheduleRefetchEvents(json);
}
},
);
};
del.following.callback = callback;
@ -517,7 +517,7 @@ $(document).ready(function () {
{ format: "json", id: data.id },
function (json) {
scheduleRefetchEvents(json);
}
},
);
};
oItems.del.callback = callback;

View File

@ -68,7 +68,7 @@ var AIRTIME = (function (AIRTIME) {
instance_id +
'" title="' +
$.i18n._("Show is empty") +
'" class="small-icon show-empty"></span>'
'" class="small-icon show-empty"></span>',
);
} else if (lastElem["fRuntime"][0] == "-") {
$elem
@ -78,7 +78,7 @@ var AIRTIME = (function (AIRTIME) {
instance_id +
'" title="' +
$.i18n._("Show is partially filled") +
'" class="small-icon show-partial-filled"></span>'
'" class="small-icon show-partial-filled"></span>',
);
}
};
@ -115,7 +115,7 @@ var AIRTIME = (function (AIRTIME) {
.dataTable()
.fnStandingRedraw();
}
}
},
);
oSchedTable.fnDraw();
}
@ -327,7 +327,7 @@ var AIRTIME = (function (AIRTIME) {
$.post(
baseUrl + "showbuilder/schedule-add",
{ format: "json", mediaIds: aMediaIds, schedIds: aSchedIds },
mod.fnItemCallback
mod.fnItemCallback,
);
};
@ -337,7 +337,7 @@ var AIRTIME = (function (AIRTIME) {
$.post(
baseUrl + "showbuilder/schedule-move",
{ format: "json", selectedItem: aSelect, afterItem: aAfter },
mod.fnItemCallback
mod.fnItemCallback,
);
};
@ -348,7 +348,7 @@ var AIRTIME = (function (AIRTIME) {
$.post(
baseUrl + "showbuilder/schedule-remove",
{ items: aItems, format: "json" },
mod.fnItemCallback
mod.fnItemCallback,
);
} else {
mod.enableUI();
@ -559,7 +559,7 @@ var AIRTIME = (function (AIRTIME) {
nRow,
aData,
iDisplayIndex,
iDisplayIndexFull
iDisplayIndexFull,
) {
var i,
length,
@ -580,7 +580,7 @@ var AIRTIME = (function (AIRTIME) {
fnPrepareSeparatorRow = function fnPrepareSeparatorRow(
sRowContent,
sClass,
iNodeIndex
iNodeIndex,
) {
//Albert:
//$(nRow.children[iNodeIndex]).replaceWith(emptyNode);
@ -725,7 +725,7 @@ var AIRTIME = (function (AIRTIME) {
$image.find(".ui-icon-alert").qtip({
content: {
text: $.i18n._(
'Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn\'t "watched" anymore.'
'Airtime is unsure about the status of this file. This can happen when the file is on a remote drive that is unaccessible or the file is in a directory that isn\'t "watched" anymore.',
),
},
style: {
@ -743,7 +743,7 @@ var AIRTIME = (function (AIRTIME) {
aData.linked_allowed
) {
$node.html(
'<input type="checkbox" name="' + aData.id + '"></input>'
'<input type="checkbox" name="' + aData.id + '"></input>',
);
} else {
$node.empty();
@ -769,7 +769,7 @@ var AIRTIME = (function (AIRTIME) {
.find("td:first")
.css(
"background",
"rgba(" + r + ", " + g + ", " + b + ", " + a + ")"
"rgba(" + r + ", " + g + ", " + b + ", " + a + ")",
);
}
@ -880,10 +880,10 @@ var AIRTIME = (function (AIRTIME) {
sAjaxDataProp: "schedule",
oLanguage: getDatatablesStrings({
sZeroRecords: $.i18n._(
"There are no shows scheduled during the specified time period."
"There are no shows scheduled during the specified time period.",
),
sEmptyTable: $.i18n._(
"There are no shows scheduled during the specified time period."
"There are no shows scheduled during the specified time period.",
),
}),
sAjaxSource: baseUrl + "showbuilder/builder-feed",
@ -931,7 +931,7 @@ var AIRTIME = (function (AIRTIME) {
selectedRows = $("." + SB_SELECTED_CLASS);
// Remember this row so we can properly multiselect
$previouslySelected = $tr;
}
},
);
$sbTable
@ -985,7 +985,7 @@ var AIRTIME = (function (AIRTIME) {
selectedRows = $("." + SB_SELECTED_CLASS);
// Remember this row so we can properly multiselect
$previouslySelected = $tr;
}
},
);
$sbTable
@ -1007,7 +1007,7 @@ var AIRTIME = (function (AIRTIME) {
mod.checkToolBarIcons();
selectedRows = $("." + SB_SELECTED_CLASS);
}
},
);
$sbTable
@ -1031,7 +1031,7 @@ var AIRTIME = (function (AIRTIME) {
mod.checkToolBarIcons();
selectedRows = $("." + SB_SELECTED_CLASS);
}
},
);
//begin context menu initialization.
@ -1332,7 +1332,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._("Select none") +
"</a></li>" +
"</ul>" +
"</div>"
"</div>",
)
.append(
"<div class='btn-group'>" +
@ -1343,7 +1343,7 @@ var AIRTIME = (function (AIRTIME) {
"<span>" +
$.i18n._("Trim overbooked shows") +
"</span>" +
"</button></div>"
"</button></div>",
)
.append(
"<div class='btn-group'>" +
@ -1354,7 +1354,7 @@ var AIRTIME = (function (AIRTIME) {
"<span>" +
$.i18n._("Remove") +
"</span>" +
"</button></div>"
"</button></div>",
);
//if 'Add/Remove content' was chosen from the context menu
@ -1370,7 +1370,7 @@ var AIRTIME = (function (AIRTIME) {
"<span>" +
$.i18n._("Jump to Current") +
"</span>" +
"</button></div>"
"</button></div>",
)
.append(
"<div class='btn-group'>" +
@ -1381,7 +1381,7 @@ var AIRTIME = (function (AIRTIME) {
"<span>" +
$.i18n._("Cancel current show") +
"</span>" +
"</button></div>"
"</button></div>",
);
}

View File

@ -219,7 +219,7 @@ AIRTIME = (function (AIRTIME) {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
);
AIRTIME.showbuilder.fnServerData.start = oRange.start;
AIRTIME.showbuilder.fnServerData.end = oRange.end;

View File

@ -36,7 +36,7 @@ function generatePartitions(partitions) {
spaceUsedGb,
totalSpaceGb,
percUsed,
percUsed
percUsed,
);
var tr = $(row);
lastElement.after(tr);
@ -71,12 +71,12 @@ function success(data, textStatus, jqXHR) {
$(children[2]).text(
sprintf(
"%(days)sd %(hours)sh %(minutes)sm %(seconds)ss",
convertSecondsToDaysHoursMinutesSeconds(s.uptime_seconds)
)
convertSecondsToDaysHoursMinutesSeconds(s.uptime_seconds),
),
);
$(children[3]).text(s.cpu_perc);
$(children[4]).text(
sprintf("%01.1fMB (%s)", parseInt(s.memory_kb) / 1000, s.memory_perc)
sprintf("%01.1fMB (%s)", parseInt(s.memory_kb) / 1000, s.memory_perc),
);
}
}
@ -92,7 +92,7 @@ function updateStatus(getDiskInfo) {
$.getJSON(
baseUrl + "api/status/format/json/diskinfo/" + getDiskInfo,
null,
success
success,
);
}

View File

@ -164,7 +164,7 @@ function assignUserRightsToUserTypes() {
"<br><br>" +
$.i18n._("View schedule") +
"<br>" +
$.i18n._("View show content")
$.i18n._("View show content"),
);
break;
case "H":
@ -183,7 +183,7 @@ function assignUserRightsToUserTypes() {
"<br>" +
$.i18n._("Create playlists, smart blocks, and webstreams") +
"<br>" +
$.i18n._("Manage their own library content")
$.i18n._("Manage their own library content"),
);
break;
case "P":
@ -202,7 +202,7 @@ function assignUserRightsToUserTypes() {
"<br>" +
$.i18n._("Create playlists, smart blocks, and webstreams") +
"<br>" +
$.i18n._("Manage all library content")
$.i18n._("Manage all library content"),
);
break;
case "A":
@ -235,7 +235,7 @@ function assignUserRightsToUserTypes() {
"<br>" +
$.i18n._("Create playlists, smart blocks, and webstreams") +
"<br>" +
$.i18n._("Manage all library content")
$.i18n._("Manage all library content"),
);
break;
}

View File

@ -46,7 +46,7 @@ var AIRTIME = (function (AIRTIME) {
dateStartId,
timeStartId,
dateEndId,
timeEndId
timeEndId,
) {
var start, end, time;

View File

@ -73,6 +73,6 @@ $(document).ready(function () {
//Datatables overrides.
aoColumns: aoColumns,
sAjaxSource: ajaxSourceURL,
}
},
);
});

View File

@ -28,7 +28,7 @@ var AIRTIME = (function (AIRTIME) {
bItemSelection,
toolbarButtons,
dataTablesOptions,
emptyPlaceholder
emptyPlaceholder,
) {
var self = this;
@ -69,7 +69,7 @@ var AIRTIME = (function (AIRTIME) {
bSearchable: false,
sWidth: "24px",
sClass: "airtime_table_checkbox",
}
},
);
}
@ -141,7 +141,7 @@ var AIRTIME = (function (AIRTIME) {
$(this._datatable, "tbody tr").on(
"dblclick",
this._SELECTORS.SELECTION_TABLE_ROW,
fn
fn,
);
};
@ -178,7 +178,7 @@ var AIRTIME = (function (AIRTIME) {
selectionMode = self.SELECTION_MODE.SINGLE;
}
self.selectRow(nRow, aData, selectionMode, iDisplayIndex);
}
},
);
$(self._datatable, "tbody tr").on(
@ -196,7 +196,7 @@ var AIRTIME = (function (AIRTIME) {
self.selectRow($this.parent(), aData, selectionMode, iVisualRowIdx); //Always multiselect for checkboxes
e.stopPropagation();
return true;
}
},
);
// Clear selection when switching pages
@ -229,7 +229,7 @@ var AIRTIME = (function (AIRTIME) {
$.i18n._(" of ") +
totalRecords +
$.i18n._(" records")
: ""
: "",
);
dt.closest(".dataTables_wrapper")
@ -266,7 +266,7 @@ var AIRTIME = (function (AIRTIME) {
btn.title,
btn.iconClass,
btn.extraBtnClass,
btn.elementId
btn.elementId,
);
$menu.append(buttonElement);
btn.element = buttonElement; //Save this guy in case you need it later.
@ -302,7 +302,7 @@ var AIRTIME = (function (AIRTIME) {
title,
iconClass,
extraBtnClass,
elementId
elementId,
) {
if (!iconClass) {
iconClass = "icon-plus";
@ -358,7 +358,7 @@ var AIRTIME = (function (AIRTIME) {
nRow,
aData,
selectionMode,
iVisualRowIdx
iVisualRowIdx,
) {
var self = this;
@ -419,7 +419,7 @@ var AIRTIME = (function (AIRTIME) {
nRow,
aData,
self.SELECTION_MODE.SINGLE,
iVisualRowIdx
iVisualRowIdx,
);
}
@ -432,11 +432,11 @@ var AIRTIME = (function (AIRTIME) {
var selectionStartRowIdx = Math.min(
iVisualRowIdx,
self._selectedRowVisualIdxMin
self._selectedRowVisualIdxMin,
);
var selectionEndRowIdx = Math.min(
iVisualRowIdx,
self._selectedRowVisualIdxMax
self._selectedRowVisualIdxMax,
);
//We can assume there's at least 1 row already selected now.
@ -476,7 +476,7 @@ var AIRTIME = (function (AIRTIME) {
if (r.status === 403) {
$(".dt-process-rel").hide();
$(".empty_placeholder_text").text(
$.i18n._("You don't have permission to view this resource.")
$.i18n._("You don't have permission to view this resource."),
);
$(".empty_placeholder").show();
}
@ -489,7 +489,7 @@ var AIRTIME = (function (AIRTIME) {
sSource,
aoData,
fnCallback,
oSettings
oSettings,
) {
var self = this;
var echo = aoData[0].value; //Datatables state tracking. Must be included.
@ -537,7 +537,7 @@ var AIRTIME = (function (AIRTIME) {
Table.prototype._datatablesCheckboxDataDelegate = function (
rowData,
callType,
dataToSave
dataToSave,
) {
if (callType == undefined) {
//Supposed to return the raw data for the type here.

View File

@ -1,6 +1,6 @@
{
"require": {
"php": "^7.4",
"friendsofphp/php-cs-fixer": "<3.20.1"
"friendsofphp/php-cs-fixer": "<3.21.2"
}
}

View File

@ -42,7 +42,7 @@ setup(
"types-requests>=2.31.0,<2.32",
],
"sentry": [
"sentry-sdk>=1.15.0,<1.27",
"sentry-sdk>=1.15.0,<1.28",
],
},
zip_safe=False,

View File

@ -26,7 +26,7 @@ setup(
"types-requests>=2.31.0,<2.32",
],
"sentry": [
"sentry-sdk>=1.15.0,<1.27",
"sentry-sdk>=1.15.0,<1.28",
],
},
zip_safe=False,