Welcome to mirror list, hosted at ThFree Co, Russian Federation.

insert_or_edit_row.js « js « assets - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0d5cdea54293da890e23c3561b276104cc351eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$(document).ready(function () {

    jQuery('.insert_row_input').on('change blur', function () {
        var tr = $(this).closest('tr'),
            checkbox = tr.find('.nullcheckbox');

        if ($(this).val() !== '') {
            checkbox.prop('checked', false);
        }

    });

    jQuery('input[type=submit]').on('mouseover', function () {
        jQuery('.insert_row_input').each(function () {
            var tr = $(this).closest('tr'),
                checkbox = tr.find('.nullcheckbox');

            if ($(this).val() !== '') {
                checkbox.prop('checked', false);
            }
        });
    });


});