PageSourceSearch

https://www.charliedaniels.com/assets/c74d2a31/form_actions.js

js charliedaniels.com collected 2026-09-24 20:00:42 UTC 1,650 bytes, 56 lines download raw bytes

1/**
2 * Created by dmitry on 08.07.16.
3 */
4
5function replaceForm(formId, data)
6{
7    $(formId).parent().replaceWith(data);
8}
9
10function showModalResult(data)
11{
12    if (typeof data === 'string') {
13        pageObject = JSON.parse(data);
14    }
15    else {
16        pageObject = data;
17    }
18
19    modalWindow = $('div#modalResult');
20
21    modalWindow.find('.modal-body').html(pageObject.html);
22    modalWindow.find('.modal-header').html(pageObject.title);
23
24    modalWindow.modal()
25}
26
27function lockSubmitButtons(formName) {
28    $('#form_' + formName + ' input[type="submit"]').attr('disabled', 'disabled');
29    $('#form_' + formName + ' span.submit-spinner').addClass('fa fa-refresh fa-spin');
30    $('#form_' + formName + ' span.submit-spinner').show();
31
32    $('#form_' + formName + ' button[type="submit"]').attr('disabled', 'disabled');
33    $('#form_' + formName + ' button[type="submit"] i').addClass('fa fa-refresh fa-spin');
34}
35
36function unlockSubmitButtons(formName) {
37    $('#form_' + formName + ' input[type="submit"]').removeAttr('disabled');
38    $('#form_' + formName + ' span.submit-spinner').removeClass('fa fa-refresh fa-spin');
39    $('#form_' + formName + ' span.submit-spinner').hide();
40
41    $('#form_' + formName + ' button[type="submit"]').removeAttr('disabled');
42    $('#form_' + formName + ' button[type="submit"] i').removeClass('fa fa-refresh fa-spin');
43}
44
45function resetValidators(formName)
46{
47    for (var prop in window) {
48        if (prop.indexOf('executed_' + formName) == 0) {// check the prefix
49            eval('window.' +prop +'= undefined;');
50        }
51    }
52}
53
54function hideBackdrop() {
55    $('.modal-backdrop.fade.in').remove();
56}

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.