fix: lock upload button until tour redirect
deploy-preland / deploy barbariskatest (push) Successful in 22s
deploy-preland / deploy barbariskatest (push) Successful in 22s
This commit is contained in:
1 parent
cf651218cc
commit
700408c1e0
2 files changed
+60
-71
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/** Регрессия: до редиректа на Tour повторная загрузка блокируется для любого формата. */
|
||||
|
||||
$form = (string) file_get_contents(dirname(__DIR__) . '/components/form.php');
|
||||
|
||||
foreach (['function beginUploadPending', 'uploadDots', 'Загрузка', 'uploadPending'] as $needle) {
|
||||
if (!str_contains($form, $needle)) {
|
||||
fwrite(STDERR, "FAIL: preland uploader must contain {$needle}\n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
echo "OK: preland upload button state\n";
|
||||
Reference in new issue
Block a user