Skip to content

Commit

Permalink
Merge pull request #2936 from WPO-Foundation/master
Browse files Browse the repository at this point in the history
update prod
  • Loading branch information
stoyan authored Jun 26, 2023
2 parents ff4c5c7 + 1c5a2d4 commit dafe6fd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions www/assets/css/pagestyle2.css
Original file line number Diff line number Diff line change
Expand Up @@ -5384,6 +5384,7 @@ label.test_preset_profile {
max-width: 34rem;
margin: 0 auto;
padding: 3rem;
margin-top: 3rem;
}

.testerror h1 {
Expand Down
1 change: 1 addition & 0 deletions www/assets/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ async function initCodeField(source, language = "js") {
const codeArea = new CodeFlask(codeEl, {
language,
});
codeArea.elTextarea.placeholder = originalTextarea.placeholder.replace(/\\n/g, '\n');
codeArea.onUpdate((code) => (hidden.value = code));
window.codeFlasks[source] = codeArea;
}
Expand Down
2 changes: 1 addition & 1 deletion www/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ function enableDisableLHSimple(){
document.addEventListener('DOMContentLoaded', () => initFileReader('custom_metrics_file', 'custom'));
</script>
</p>
<textarea name="custom" class="large" id="custom" cols="0" rows="0"></textarea>
<textarea name="custom" class="large" id="custom" cols="0" rows="0" placeholder="[metricname]\nreturn code;"></textarea>
</div>
<div class="notification-container">
<div class="notification">
Expand Down
2 changes: 2 additions & 0 deletions www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ function buildSelfHost($hosts)
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
echo json_encode($ret);
} else {
$body_class = 'common';
$tpl = new Template('errors');
if ($error == 'Not enough runs available') {
echo $tpl->render('runlimit');
Expand Down Expand Up @@ -1445,6 +1446,7 @@ function buildSelfHost($hosts)
header("Content-type: application/json");
echo json_encode($ret);
} elseif (strlen($error)) {
$body_class = 'common';
$tpl = new Template('errors');
if ($error == 'Not enough runs available') {
echo $tpl->render('runlimit');
Expand Down
1 change: 1 addition & 0 deletions www/templates/layouts/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
global $page_description;
global $cdnPath;
global $support_link;
global $body_class;

$page_title ??= 'WebPageTest';
$body_class = $body_class ? ' class="' . $body_class . '"' : '';
Expand Down

0 comments on commit dafe6fd

Please sign in to comment.