PageSourceSearch

https://sis.glemt.org.br/Tema/Vendor/Potencia/2.0/assets/javascript/uppercase.js

js glemt.org.br collected 2026-09-27 08:15:46 UTC 1,339 bytes, 49 lines download raw bytes

1$(document).on('uppercase-words', function () {
2    /* Converte os campos de texto do site
3     ** para letras maiúsculas
4     ** No array de ignore eu passo as exceções
5     */
6    $('input[type=text]').on('blur', function () {
7        var ignore = [
8            'user_login',
9            'pessoa_email',
10            'profano_esposa_email'
11        ];
12
13        var ignoreUpperCase = $(this).data('ignore-uppercase');        
14        
15        if (ignoreUpperCase !== undefined) {
16            return;
17        }
18
19        var id = $(this).attr('id');
20
21        if (ignore.indexOf(id) == -1) {
22            var value = this.value.toUpperCase();
23            $(this).val(value);
24        } else {
25            ignore.forEach(function (item) {
26                if ($('#' + item) !== undefined) {
27                    var field = $('#' + item);
28                    if (typeof field.val() != 'undefined') {
29                        var lower = field.val().toLowerCase();
30                        field.val(lower);
31                    }
32                }
33            });
34        }
35    });
36});
37
38$(document).ready(function () {
39    $(document).trigger('uppercase-words');
40});
41
42$(document).bind('ajaxComplete', function () {
43    $(document).trigger('uppercase-words');
44});
45
46function sis_trigger_master_detail()
47{
48    $(document).trigger('uppercase-words');
49}

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.