PageSourceSearch

https://login.assuran.co.jp/js/common/ajax_form.js?261006_1

js assuran.co.jp collected 2026-10-06 07:59:21 UTC 1,554 bytes, 53 lines download raw bytes

1/**
2 * Created by 慶一郎 on 2015/10/26.
3 */
4
5
6$(document).on("submit","form.ajax", function (event) {
7    event.preventDefault();
8    var $form = $(this);
9    var $button = $form.find('button');
10    var original_text = $button.html();
11    //var element_key = $form.attr("element_key");
12
13    var post_data = $form.serializeArray();
14    post_data.push({name: "page_id", value: page_id});
15
16    // 送信
17    $.ajax({
18        url: $form.attr('action'),
19        type: $form.attr('method'),
20        data: post_data,
21        //timeout: 10000,  // 単位はミリ秒
22        dataType: "json",
23        beforeSend: function(xhr, settings) {
24            $button.html('<i class="fa-refresh fa fa-spin"></i> 送信中');
25            $button.attr('disabled', true);
26        },
27        // 応答後
28        complete: function(xhr, textStatus) {
29            $button.attr('disabled', false);
30            $button.html(original_text);
31        },
32
33        // 通信成功時の処理
34        success: function(result, textStatus, xhr) {
35            // 入力値を初期化
36            $form[0].reset();
37
38            if(result.msg != undefined){
39                alert(result.msg);
40            }
41            if(result.redirect == "reload"){
42                location.reload();
43            } else if(result.redirect != undefined) {
44                location.href = result.redirect;
45            }
46        },
47
48        // 通信失敗時の処理
49        error: function(xhr, textStatus, error) {
50            alert("通信エラーが発生しました");
51        }
52    });
53});

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.