chore(deps): update pre-commit hook pre-commit/mirrors-prettier to v3 (stable) (#2614)

* chore(deps): update pre-commit hook pre-commit/mirrors-prettier to v3

* style: format code using prettier v3.0.0

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
renovate[bot] 2023-07-06 21:39:05 +02:00 committed by GitHub
parent 74737cf3c4
commit 8c5512cd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 374 additions and 374 deletions

View File

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

View File

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

View File

@ -54,7 +54,7 @@ $(document).ready(function () {
playBlock(blockId, blockIndex); playBlock(blockId, blockIndex);
} }
}, },
} },
); );
$("#jp_container_1").on("mouseenter", "ul.jp-controls li", function (ev) { $("#jp_container_1").on("mouseenter", "ul.jp-controls li", function (ev) {
@ -80,7 +80,7 @@ function playAllPlaylist(p_playlistID, p_playlistIndex) {
} else { } else {
buildplaylist( buildplaylist(
baseUrl + "audiopreview/get-playlist/playlistID/" + p_playlistID, baseUrl + "audiopreview/get-playlist/playlistID/" + p_playlistID,
p_playlistIndex p_playlistIndex,
); );
} }
} }
@ -93,7 +93,7 @@ function playBlock(p_blockId, p_blockIndex) {
} else { } else {
buildplaylist( buildplaylist(
baseUrl + "audiopreview/get-block/blockId/" + p_blockId, baseUrl + "audiopreview/get-block/blockId/" + p_blockId,
p_blockIndex p_blockIndex,
); );
} }
} }
@ -113,7 +113,7 @@ function playAllShow(p_showID, p_index) {
} else { } else {
buildplaylist( buildplaylist(
baseUrl + "audiopreview/get-show/showID/" + p_showID, 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 // Add 2px to account for borders
window.resizeTo( window.resizeTo(
container.width() + 2, 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 // Add 2px to account for borders
window.resizeTo( window.resizeTo(
container.width() + 2, 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( openPreviewWindow(
baseUrl + "audiopreview/audio-preview/audioFileID/" + id + "/type/" + type, baseUrl + "audiopreview/audio-preview/audioFileID/" + id + "/type/" + type,
previewWidth, previewWidth,
previewHeight previewHeight,
); );
_preview_window.focus(); _preview_window.focus();
} }
@ -177,7 +177,7 @@ function open_playlist_preview(p_playlistID, p_playlistIndex) {
"/playlistID/" + "/playlistID/" +
p_playlistID, p_playlistID,
previewWidth, previewWidth,
previewHeight previewHeight,
); );
_preview_window.focus(); _preview_window.focus();
} }
@ -197,7 +197,7 @@ function open_block_preview(p_blockId, p_blockIndex) {
"/blockId/" + "/blockId/" +
p_blockId, p_blockId,
previewWidth, previewWidth,
previewHeight previewHeight,
); );
_preview_window.focus(); _preview_window.focus();
} }
@ -219,7 +219,7 @@ function open_show_preview(p_showID, p_showIndex) {
"/showIndex/" + "/showIndex/" +
p_showIndex, p_showIndex,
previewWidth, previewWidth,
previewHeight previewHeight,
); );
_preview_window.focus(); _preview_window.focus();
} }
@ -230,7 +230,7 @@ function openPreviewWindow(url, w, h) {
_preview_window = window.open( _preview_window = window.open(
url, url,
$.i18n._("Audio Player"), $.i18n._("Audio Player"),
dim + "scrollbars=yes" dim + "scrollbars=yes",
); );
return false; return false;
} }
@ -245,7 +245,7 @@ function validateTimeRange() {
dateStartId, dateStartId,
timeStartId, timeStartId,
dateEndId, dateEndId,
timeEndId timeEndId,
); );
start = oRange.start; start = oRange.start;
@ -278,13 +278,13 @@ function validateImage(img, el) {
// hack way of inserting an error message // hack way of inserting an error message
var err = $.i18n._("Selected file is too large"); var err = $.i18n._("Selected file is too large");
el.parent().after( 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; return false;
} else if (validateMimeType(img.type) < 0) { } else if (validateMimeType(img.type) < 0) {
var err = $.i18n._("File format is not supported"); var err = $.i18n._("File format is not supported");
el.parent().after( 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; return false;
} }
@ -346,7 +346,7 @@ function getUsabilityHint() {
showHint($hint_div); showHint($hint_div);
} }
} }
} },
); );
} }
@ -395,7 +395,7 @@ jQuery.fn.scrollText = function (selector) {
{ {
textIndent: "-" + (sw + 1 - iw) + "px", textIndent: "-" + (sw + 1 - iw) + "px",
}, },
sw * 8 sw * 8,
); );
} }
}); });
@ -404,7 +404,7 @@ jQuery.fn.scrollText = function (selector) {
{ {
textIndent: "0", textIndent: "0",
}, },
500 500,
); );
}); });
}); });

View File

@ -38,14 +38,14 @@ var AIRTIME = (function (AIRTIME) {
if (response.authResponse) { if (response.authResponse) {
mod.getPagesOwnedByUser( mod.getPagesOwnedByUser(
response.authResponse.userID, response.authResponse.userID,
response.authResponse.accessToken response.authResponse.accessToken,
); );
mod.addPageTab(); mod.addPageTab();
} else { } else {
console.log("Authorization failed."); console.log("Authorization failed.");
} }
}, },
{ scope: "manage_pages" } { scope: "manage_pages" },
); );
}; };
@ -55,7 +55,7 @@ var AIRTIME = (function (AIRTIME) {
function (response) { function (response) {
console.log(response); console.log(response);
}, },
{ access_token: accessToken } { access_token: accessToken },
); );
}; };
@ -79,12 +79,12 @@ var AIRTIME = (function (AIRTIME) {
{ pages: JSON.stringify(pageIdList) }, { pages: JSON.stringify(pageIdList) },
function () { function () {
alert("Successfully added to your Facebook page!"); alert("Successfully added to your Facebook page!");
} },
) )
.done(function () {}) .done(function () {})
.fail(function () { .fail(function () {
alert( 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, app_id: FACEBOOK_APP_ID,
//redirect_uri: 'https://localhost' //redirect_uri: 'https://localhost'
} },
); );
}; };

View File

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

View File

@ -24,28 +24,28 @@ function getContent() {
msg += msg +=
"<li>" + "<li>" +
$.i18n._( $.i18n._(
"A patch update for your LibreTime installation is available." "A patch update for your LibreTime installation is available.",
); );
} }
if (hasMinor) { if (hasMinor) {
msg += msg +=
"<li>" + "<li>" +
$.i18n._( $.i18n._(
"A feature update for your LibreTime installation is available." "A feature update for your LibreTime installation is available.",
); );
} }
if (hasMajor && !hasMultiMajor) { if (hasMajor && !hasMultiMajor) {
msg += msg +=
"<li>" + "<li>" +
$.i18n._( $.i18n._(
"A major update for your LibreTime installation is available." "A major update for your LibreTime installation is available.",
); );
} }
if (hasMultiMajor) { if (hasMultiMajor) {
msg += msg +=
"<li>" + "<li>" +
$.i18n._( $.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>"; msg += "</ul>";

View File

@ -37,7 +37,7 @@ var AIRTIME = (function (AIRTIME) {
} }
AIRTIME.library.changeAddButtonText( AIRTIME.library.changeAddButtonText(
$(".btn-group #library-plus #lib-plus-text"), $(".btn-group #library-plus #lib-plus-text"),
btnText btnText,
); );
}; };
@ -73,7 +73,7 @@ var AIRTIME = (function (AIRTIME) {
mod.checkToolBarIcons(); 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({ ).draggable({
helper: function () { helper: function () {
var $el = $(this), var $el = $(this),
@ -178,8 +178,8 @@ var AIRTIME = (function (AIRTIME) {
} else if ($(".obj_type").val() == "playlist") { } else if ($(".obj_type").val() == "playlist") {
alert( alert(
$.i18n._( $.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( AIRTIME.library.changeAddButtonText(
$(".btn-group #library-plus #lib-plus-text"), $(".btn-group #library-plus #lib-plus-text"),
btnText btnText,
); );
}; };
@ -100,7 +100,7 @@ var AIRTIME = (function (AIRTIME) {
if (emptyRow.length > 0) { if (emptyRow.length > 0) {
emptyRow.hide(); emptyRow.hide();
var mediaType = parseInt( var mediaType = parseInt(
$(".media_type_selector.selected").data("selection-id") $(".media_type_selector.selected").data("selection-id"),
), ),
img = wrapper.find(".empty_placeholder_image"); img = wrapper.find(".empty_placeholder_image");
if (!opts && isNaN(mediaType)) { if (!opts && isNaN(mediaType)) {
@ -127,7 +127,7 @@ var AIRTIME = (function (AIRTIME) {
opts.href + opts.href +
"'>" + "'>" +
$.i18n._("Learn about " + opts.media) + $.i18n._("Learn about " + opts.media) +
"</a>" "</a>",
); );
} }
@ -265,7 +265,7 @@ var AIRTIME = (function (AIRTIME) {
if (data === undefined) { if (data === undefined) {
alert( 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; return false;
} }
@ -281,7 +281,7 @@ var AIRTIME = (function (AIRTIME) {
{ {
scrollTop: el.offset().top, scrollTop: el.offset().top,
}, },
0 0,
); );
} }
@ -420,7 +420,7 @@ var AIRTIME = (function (AIRTIME) {
function (json) { function (json) {
AIRTIME.playlist.fileMdEdit(json, data.tr_id); AIRTIME.playlist.fileMdEdit(json, data.tr_id);
//buildEditMetadataDialog(json); //buildEditMetadataDialog(json);
} },
); );
} else if (data.ftype === "playlist" || data.ftype === "block") { } else if (data.ftype === "playlist" || data.ftype === "block") {
AIRTIME.playlist.fnEdit(data, baseUrl + "playlist/edit"); AIRTIME.playlist.fnEdit(data, baseUrl + "playlist/edit");

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -136,7 +136,7 @@ $(document).ready(function () {
ul = logoEl.find(".errors"); ul = logoEl.find(".errors");
li = $("<li/>").append( 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. //errors ul has already been created.

View File

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

View File

@ -184,7 +184,7 @@ function setSmartBlockEvents() {
.val(criteria_datetime); .val(criteria_datetime);
disableAndHideDateTimeDropdown( disableAndHideDateTimeDropdown(
next.find("first-child"), next.find("first-child"),
getRowIndex(next) getRowIndex(next),
); );
/* if only the current row has the extra criteria value, /* if only the current row has the extra criteria value,
* then just remove the current row's extra criteria element * then just remove the current row's extra criteria element
@ -224,7 +224,7 @@ function setSmartBlockEvents() {
.val(extra_criteria_datetime); .val(extra_criteria_datetime);
disableAndHideExtraDateTimeDropdown( disableAndHideExtraDateTimeDropdown(
next.find("first-child"), next.find("first-child"),
getRowIndex(next) getRowIndex(next),
); );
/* if only the current row has the extra criteria value, /* if only the current row has the extra criteria value,
* then just remove the current row's extra criteria element * then just remove the current row's extra criteria element
@ -325,7 +325,7 @@ function setSmartBlockEvents() {
sizeTextBoxes( sizeTextBoxes(
item_to_hide.find('[name^="sp_criteria_value"]'), item_to_hide.find('[name^="sp_criteria_value"]'),
"sp_extra_input_text", "sp_extra_input_text",
"sp_input_text" "sp_input_text",
); );
item_to_hide.hide(); item_to_hide.hide();
@ -396,7 +396,7 @@ function setSmartBlockEvents() {
/********** CRITERIA CHANGE **********/ /********** CRITERIA CHANGE **********/
form form
.find( .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 () { .live("change", function () {
var index = getRowIndex($(this).parent()); var index = getRowIndex($(this).parent());
@ -611,7 +611,7 @@ function buttonClickAction(clickType, url) {
function (data) { function (data) {
callback(data, clickType); callback(data, clickType);
disableLoadingIcon(); disableLoadingIcon();
} },
); );
} }
@ -660,11 +660,11 @@ function setupUI() {
content: { content: {
text: text:
$.i18n._( $.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 />" + "<br /><br />" +
$.i18n._( $.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: { hide: {
@ -688,9 +688,9 @@ function setupUI() {
content: { content: {
text: sprintf( text: sprintf(
$.i18n._( $.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: { hide: {
@ -714,9 +714,9 @@ function setupUI() {
content: { content: {
text: sprintf( text: sprintf(
$.i18n._( $.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: { hide: {
@ -752,11 +752,11 @@ function enableAndShowTracktypeDropdown(valEle, index) {
index + index +
'" id="sp_criteria_value_' + '" id="sp_criteria_value_' +
index + index +
'" class="input_select sp_input_select"></select>' '" class="input_select sp_input_select"></select>',
); );
$.each(stringTracktypeOptions, function (key, value) { $.each(stringTracktypeOptions, function (key, value) {
$("#sp_criteria_value_" + index).append( $("#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 + index +
'" id="sp_criteria_value_' + '" id="sp_criteria_value_' +
index + 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( var stringTracktypeOptions = Object.assign(
{ 0: "Select Track Type" }, { 0: "Select Track Type" },
tracktypes tracktypes,
); );

View File

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

View File

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

View File

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

View File

@ -46,10 +46,10 @@ function setWatchedDirEvents() {
confirm( confirm(
sprintf( sprintf(
$.i18n._( $.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"; url = baseUrl + "Preference/change-stor-directory";
@ -63,7 +63,7 @@ function setWatchedDirEvents() {
$("#watched-folder-section").empty(); $("#watched-folder-section").empty();
$("#watched-folder-section").append(json.subform); $("#watched-folder-section").append(json.subform);
setWatchedDirEvents(); setWatchedDirEvents();
} },
); );
} else { } else {
$("#storageFolder").val(""); $("#storageFolder").val("");
@ -83,11 +83,11 @@ function setWatchedDirEvents() {
function (json) { function (json) {
$("#watched-folder-section").empty(); $("#watched-folder-section").empty();
$("#watched-folder-section").append( $("#watched-folder-section").append(
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>" "<h2>" + $.i18n._("Manage Media Folders") + "</h2>",
); );
$("#watched-folder-section").append(json.subform); $("#watched-folder-section").append(json.subform);
setWatchedDirEvents(); setWatchedDirEvents();
} },
); );
}); });
@ -119,11 +119,11 @@ function setWatchedDirEvents() {
function (json) { function (json) {
$("#watched-folder-section").empty(); $("#watched-folder-section").empty();
$("#watched-folder-section").append( $("#watched-folder-section").append(
"<h2>" + $.i18n._("Manage Media Folders") + "</h2>" "<h2>" + $.i18n._("Manage Media Folders") + "</h2>",
); );
$("#watched-folder-section").append(json.subform); $("#watched-folder-section").append(json.subform);
setWatchedDirEvents(); setWatchedDirEvents();
} },
); );
} }
}); });

View File

@ -119,13 +119,13 @@ function removeLogo() {
function (json) { function (json) {
// Reload without resubmitting the form // Reload without resubmitting the form
location.href = location.href.replace(location.hash, ""); location.href = location.href.replace(location.hash, "");
} },
); );
} }
function deleteAllFiles() { function deleteAllFiles() {
var resp = confirm( 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) { if (resp) {
$.post( $.post(
@ -133,7 +133,7 @@ function deleteAllFiles() {
{ csrf_token: $("#csrf").val() }, { csrf_token: $("#csrf").val() },
function (json) { function (json) {
location.reload(); location.reload();
} },
); );
} }
} }

View File

@ -201,16 +201,16 @@ function setupEventListeners() {
text: text:
sprintf( sprintf(
$.i18n._( $.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( sprintf(
$.i18n._("For more details, please read the %s%s Manual%s"), $.i18n._("For more details, please read the %s%s Manual%s"),
userManualAnchorOpen, userManualAnchorOpen,
PRODUCT_NAME, PRODUCT_NAME,
"</a>" "</a>",
), ),
}, },
hide: { hide: {
@ -233,7 +233,7 @@ function setupEventListeners() {
$(".icecast_metadata_help_icon").qtip({ $(".icecast_metadata_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -256,7 +256,7 @@ function setupEventListeners() {
$("#auto_transition_help").qtip({ $("#auto_transition_help").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -279,7 +279,7 @@ function setupEventListeners() {
$("#auto_switch_help").qtip({ $("#auto_switch_help").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -302,7 +302,7 @@ function setupEventListeners() {
$(".stream_username_help_icon").qtip({ $(".stream_username_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -325,7 +325,7 @@ function setupEventListeners() {
$(".admin_username_help_icon").qtip({ $(".admin_username_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -348,7 +348,7 @@ function setupEventListeners() {
$(".master_username_help_icon").qtip({ $(".master_username_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -372,12 +372,12 @@ function setupEventListeners() {
content: { content: {
text: sprintf( text: sprintf(
$.i18n._( $.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 target='_blank' href='https://wiki.sourcefabric.org/x/NgPQ'>",
"</a>", "</a>",
"<a target='_blank' href='https://wiki.sourcefabric.org/x/KgPQ'>", "<a target='_blank' href='https://wiki.sourcefabric.org/x/KgPQ'>",
"</a>" "</a>",
), ),
}, },
hide: { hide: {
@ -462,6 +462,6 @@ $(document).ready(function () {
setSliderForReplayGain(); setSliderForReplayGain();
getAdminPasswordStatus(); getAdminPasswordStatus();
}); });
} },
); );
}); });

View File

@ -47,7 +47,7 @@ function makeAddShowButton() {
$.i18n._("New Show") + $.i18n._("New Show") +
"</span>" + "</span>" +
"</button>" + "</button>" +
"</span>" "</span>",
); );
} }
} }
@ -196,7 +196,7 @@ function findHosts(request, callback) {
} else { } else {
callback(json.hosts); 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 // 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( $("[id^=add_show_logo_current]").toggle(
$("#add_show_logo_current").attr("src") !== "" && $("#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"); var submitButton = $(".button-bar.bottom").find(".add-show-submit");
$("[id^=add_show_instance_description]").toggle( $("[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 () { form.find("#add_show_has_autoplaylist").click(function () {
@ -342,7 +342,7 @@ function setAddShowEvents(form) {
if (!checkBoxSelected) { if (!checkBoxSelected) {
var d = getDateFromString( var d = getDateFromString(
form.find("#add_show_start_date").attr("value") form.find("#add_show_start_date").attr("value"),
); );
if (d != null) if (d != null)
form.find("#add_show_day_check-" + d.getDay()).attr("checked", true); form.find("#add_show_day_check-" + d.getDay()).attr("checked", true);
@ -368,9 +368,9 @@ function setAddShowEvents(form) {
.after( .after(
"<ul id='show-link-readonly-warning' class='errors'><li>" + "<ul id='show-link-readonly-warning' class='errors'><li>" +
$.i18n._( $.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; return false;
@ -386,9 +386,9 @@ function setAddShowEvents(form) {
.after( .after(
"<ul id='show-link-warning' class='errors'><li>" + "<ul id='show-link-warning' class='errors'><li>" +
$.i18n._( $.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); endTimeField.val(json.end.time);
// Change the timezone now that we've updated the times // Change the timezone now that we've updated the times
currentTimezone = newTimezone; currentTimezone = newTimezone;
} },
); );
}); });
@ -506,13 +506,13 @@ function setAddShowEvents(form) {
if (form.find("#add_show_repeat_type").val() == 2) { if (form.find("#add_show_repeat_type").val() == 2) {
form form
.find( .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(); .show();
} else { } else {
form form
.find( .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(); .hide();
} }
@ -527,7 +527,7 @@ function setAddShowEvents(form) {
content: { content: {
text: $.i18n._( 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 " + "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: { hide: {
@ -550,7 +550,7 @@ function setAddShowEvents(form) {
form.find(".show_autoplaylist_help_icon").qtip({ form.find(".show_autoplaylist_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -573,7 +573,7 @@ function setAddShowEvents(form) {
form.find(".airtime_auth_help_icon").qtip({ form.find(".airtime_auth_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -595,7 +595,7 @@ function setAddShowEvents(form) {
form.find(".custom_auth_help_icon").qtip({ form.find(".custom_auth_help_icon").qtip({
content: { content: {
text: $.i18n._( text: $.i18n._(
"Specify custom authentication which will work only for this show." "Specify custom authentication which will work only for this show.",
), ),
}, },
hide: { hide: {
@ -617,7 +617,7 @@ function setAddShowEvents(form) {
form.find(".stream_username_help_icon").qtip({ form.find(".stream_username_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -639,7 +639,7 @@ function setAddShowEvents(form) {
form.find(".show_linking_help_icon").qtip({ form.find(".show_linking_help_icon").qtip({
content: { content: {
text: $.i18n._( 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: { hide: {
@ -933,7 +933,7 @@ function setAddShowEvents(form) {
{ format: "json" }, { format: "json" },
function (json) { function (json) {
redrawAddShowForm($addShowForm, json.form); redrawAddShowForm($addShowForm, json.form);
} },
); );
} else { } else {
redrawAddShowForm($addShowForm, json.newForm); redrawAddShowForm($addShowForm, json.newForm);
@ -970,7 +970,7 @@ function setAddShowEvents(form) {
startTime[0], startTime[0],
startTime[1], startTime[1],
0, 0,
0 0,
); );
var endDateString = $("#add_show_end_date_no_repeat").val(); var endDateString = $("#add_show_end_date_no_repeat").val();
@ -984,7 +984,7 @@ function setAddShowEvents(form) {
endTime[0], endTime[0],
endTime[1], endTime[1],
0, 0,
0 0,
); );
if (startDateTime.getTime() >= endDateTime.getTime()) { if (startDateTime.getTime() >= endDateTime.getTime()) {
@ -1024,7 +1024,7 @@ function setAddShowEvents(form) {
var timezone = $("#add_show_timezone").val(); var timezone = $("#add_show_timezone").val();
calculateDuration(startDateTimeString, endDateTimeString, timezone); calculateDuration(startDateTimeString, endDateTimeString, timezone);
} }
} },
); );
// when end date/time changes, check if the changed date is in past of start date/time // 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[0],
startTime[1], startTime[1],
0, 0,
0 0,
); );
var endDate = endDateString.split("-"); var endDate = endDateString.split("-");
@ -1059,7 +1059,7 @@ function setAddShowEvents(form) {
endTime[0], endTime[0],
endTime[1], endTime[1],
0, 0,
0 0,
); );
if (startDateTime.getTime() > endDateTime.getTime()) { if (startDateTime.getTime() > endDateTime.getTime()) {
@ -1076,7 +1076,7 @@ function setAddShowEvents(form) {
var timezone = $("#add_show_timezone").val(); var timezone = $("#add_show_timezone").val();
calculateDuration(startDateTimeString, endDateTimeString, timezone); calculateDuration(startDateTimeString, endDateTimeString, timezone);
} }
} },
); );
if ($("#cb_custom_auth").attr("checked")) { if ($("#cb_custom_auth").attr("checked")) {
@ -1103,7 +1103,7 @@ function setAddShowEvents(form) {
function (data) { function (data) {
$("#add_show_duration").val(JSON.parse(data)); $("#add_show_duration").val(JSON.parse(data));
loadingIcon.hide(); loadingIcon.hide();
} },
); );
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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