PageSourceSearch

https://dergipark.org.tr/zollu/js/prevent-double-submit.js

js dergipark.org.tr collected 2026-10-01 08:45:32 UTC 778 bytes, 23 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    $(document).ready(function () {
5        // Skip forms with custom confirmation dialogs
6        $('form:not(.no-auto-disable)').on('submit', function (e) {
7            // Only disable if not prevented
8            const $form = $(this);
9            const $buttons = $form.find('button[type="submit"], input[type="submit"]');
10
11            // Use setTimeout to check if submission was prevented
12            setTimeout(function () {
13                // If form is still in DOM and not actually submitting, re-enable
14                if ($form.data('submitting') !== true) {
15                    $buttons.prop('disabled', false);
16                }
17            }, 2000);
18
19            $buttons.prop('disabled', true);
20        });
21    });
22
23})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.