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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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