PageSourceSearch

https://exalumnos.itam.mx/sites/all/modules/pms/js/prevent_multiple_submit.js?tlwnbc

js itam.mx collected 2026-10-01 10:18:28 UTC 379 bytes, 18 lines download raw bytes

1/**
2 * @file
3 * Small JS code, prevent user to click multiple times.
4 *
5 */
6(function ($) {
7  'use strict';
8  Drupal.behaviors.prevent_multiple_submit = {
9    attach: function (context, settings) {
10      jQuery('form').submit(function () {
11        jQuery(this).submit(function (e) {
12          e.preventDefault();
13        });
14        return true;
15      });
16    }
17  };
18})(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.