Skip to content

Commit

Permalink
fix net::ERR_INSUFFICIENT_RESOURCES error in Chrome during import of …
Browse files Browse the repository at this point in the history
…a lot of records
  • Loading branch information
dshovchko committed Jan 26, 2025
1 parent 0d221b9 commit 2f8dcf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smd_tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -2924,7 +2924,7 @@ function smd_tags_import($smd_tag_options)

echo '<script type="text/javascript">';
echo "var ictr = 0; var itot = {$total}; var lnk_ctr = 0;";
echo 'jQuery(function() {';
echo 'jQuery(async function() {';
echo 'jQuery("#smd_tags_import_itot").text("/'.$total.'");';

if ($rs) {
Expand All @@ -2949,7 +2949,7 @@ function smd_tags_import($smd_tag_options)
$artid = doSlash($row['ID']);

echo <<<EOJS
sendAsyncEvent(
await sendAsyncEvent(
{
event: textpattern.event,
step: 'smd_tags_import_one',
Expand All @@ -2965,7 +2965,7 @@ function smd_tags_import($smd_tag_options)
smd_tags_import_force_parent: '{$smd_tags_import_force_parent}',
smd_tags_import_force_cat: '{$smd_tags_import_force_cat}',
smd_tags_delete_orig: '{$smd_tags_delete_orig}'
}, smd_tags_group_feedback);
}, smd_tags_group_feedback).promise().catch(console.error);
EOJS;
}

Expand Down

0 comments on commit 2f8dcf6

Please sign in to comment.