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:
parent
74737cf3c4
commit
8c5512cd73
35 changed files with 374 additions and 374 deletions
|
@ -151,7 +151,7 @@ function open_audio_preview(type, id) {
|
|||
openPreviewWindow(
|
||||
baseUrl + "audiopreview/audio-preview/audioFileID/" + id + "/type/" + type,
|
||||
previewWidth,
|
||||
previewHeight
|
||||
previewHeight,
|
||||
);
|
||||
_preview_window.focus();
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ function open_playlist_preview(p_playlistID, p_playlistIndex) {
|
|||
"/playlistID/" +
|
||||
p_playlistID,
|
||||
previewWidth,
|
||||
previewHeight
|
||||
previewHeight,
|
||||
);
|
||||
_preview_window.focus();
|
||||
}
|
||||
|
@ -197,7 +197,7 @@ function open_block_preview(p_blockId, p_blockIndex) {
|
|||
"/blockId/" +
|
||||
p_blockId,
|
||||
previewWidth,
|
||||
previewHeight
|
||||
previewHeight,
|
||||
);
|
||||
_preview_window.focus();
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ function open_show_preview(p_showID, p_showIndex) {
|
|||
"/showIndex/" +
|
||||
p_showIndex,
|
||||
previewWidth,
|
||||
previewHeight
|
||||
previewHeight,
|
||||
);
|
||||
_preview_window.focus();
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ function openPreviewWindow(url, w, h) {
|
|||
_preview_window = window.open(
|
||||
url,
|
||||
$.i18n._("Audio Player"),
|
||||
dim + "scrollbars=yes"
|
||||
dim + "scrollbars=yes",
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ function validateTimeRange() {
|
|||
dateStartId,
|
||||
timeStartId,
|
||||
dateEndId,
|
||||
timeEndId
|
||||
timeEndId,
|
||||
);
|
||||
|
||||
start = oRange.start;
|
||||
|
@ -278,13 +278,13 @@ function validateImage(img, el) {
|
|||
// hack way of inserting an error message
|
||||
var err = $.i18n._("Selected file is too large");
|
||||
el.parent().after(
|
||||
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>"
|
||||
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>",
|
||||
);
|
||||
return false;
|
||||
} else if (validateMimeType(img.type) < 0) {
|
||||
var err = $.i18n._("File format is not supported");
|
||||
el.parent().after(
|
||||
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>"
|
||||
"<ul id='img-err' class='errors'>" + "<li>" + err + "</li>" + "</ul>",
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ function getUsabilityHint() {
|
|||
showHint($hint_div);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -395,7 +395,7 @@ jQuery.fn.scrollText = function (selector) {
|
|||
{
|
||||
textIndent: "-" + (sw + 1 - iw) + "px",
|
||||
},
|
||||
sw * 8
|
||||
sw * 8,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -404,7 +404,7 @@ jQuery.fn.scrollText = function (selector) {
|
|||
{
|
||||
textIndent: "0",
|
||||
},
|
||||
500
|
||||
500,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -38,14 +38,14 @@ var AIRTIME = (function (AIRTIME) {
|
|||
if (response.authResponse) {
|
||||
mod.getPagesOwnedByUser(
|
||||
response.authResponse.userID,
|
||||
response.authResponse.accessToken
|
||||
response.authResponse.accessToken,
|
||||
);
|
||||
mod.addPageTab();
|
||||
} else {
|
||||
console.log("Authorization failed.");
|
||||
}
|
||||
},
|
||||
{ scope: "manage_pages" }
|
||||
{ scope: "manage_pages" },
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -55,7 +55,7 @@ var AIRTIME = (function (AIRTIME) {
|
|||
function (response) {
|
||||
console.log(response);
|
||||
},
|
||||
{ access_token: accessToken }
|
||||
{ access_token: accessToken },
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -79,12 +79,12 @@ var AIRTIME = (function (AIRTIME) {
|
|||
{ pages: JSON.stringify(pageIdList) },
|
||||
function () {
|
||||
alert("Successfully added to your Facebook page!");
|
||||
}
|
||||
},
|
||||
)
|
||||
.done(function () {})
|
||||
.fail(function () {
|
||||
alert(
|
||||
"Sorry, an error occurred and we were unable to add the widget to your Facebook page."
|
||||
"Sorry, an error occurred and we were unable to add the widget to your Facebook page.",
|
||||
);
|
||||
});
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ var AIRTIME = (function (AIRTIME) {
|
|||
{
|
||||
app_id: FACEBOOK_APP_ID,
|
||||
//redirect_uri: 'https://localhost'
|
||||
}
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue