This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
cardmaker/resources/cards/creator.js
T

9 lines
327 B
JavaScript

function submit_preview(form) { /* with timeout for ratelimiting*/
if (typeof refresh_timeout !== 'undefined') {
window.clearTimeout(refresh_timeout);
}
refresh_timeout = window.setTimeout(function(){form.submit();}, 200);
}
window.setTimeout(function(){document.getElementById("cardform").submit();}, 1);