PageSourceSearch

https://jrleiloes.com.br/v3/js/vue/ui_leilao.js

js jrleiloes.com.br collected 2026-10-08 19:24:54 UTC 2,016 bytes, 91 lines download raw bytes

1/*
2 * Função abreLotePreview
3 * Recebe o leilao_id e o lote_id para exibição das informações daquele lote
4*/
5	function showLoading(titulo){
6
7		dialog.dialog({
8			  autoOpen: false,
9			  title: titulo,
10			  modal: true,
11			  resizable: false,
12			  height: 100
13		  });
14		  
15			dialog.dialog('open');
16	}
17
18	function hideLoading(){
19		dialog.dialog('close');
20	}
21	
22	function exibeMsgSincronizar(){
23		return $("#chk_sincronizar").attr('checked');
24	}
25	
26	function msgSincronizar(){
27		if(exibeMsgSincronizar() == 'checked'){
28			atualiza_pregao = true;
29			showLoading('Sincronizando...');
30		}
31	}
32	
33	function unCheckSincronizar(){
34		$("#chk_sincronizar").attr('checked',false);
35	}
36
37	function abreLotePreview(leilao_id, _lote_id, lote_nu) {
38			unCheckSincronizar();
39			showLoading('Carregando lote');
40			lote_id = _lote_id;
41			 $.ajax ({
42					type: "GET",
43					url: "/leilao/dados-lote",
44
45					data: "leilao_id=" + leilao_id + "&lote_id=" + _lote_id,
46					success: function(msg) {
47
48				 		$("#aba_em_pregao").html('');
49				 
50				 		$("#aba_em_pregao").html('Lote');
51				 		
52				 		$("#aba_em_pregao").show();
53				 		displayVideo(true);
54					
55				 		$("#tabs").tabs('select', 1);
56						//$tabs.tabs('select', 1);
57
58						$("#tab-pregao").html(msg);
59						//clock_countdown();
60						if(lote_empregao != 0){
61							$("#container_sincronizar").show();
62						}
63						var href = '/leilao/index/leilao_id/'+leilao_id+'/lote_id/'+_lote_id+'/lote_nu/'+lote_nu;
64                                                $("#url_retorno").val(href);
65                                                history.pushState('', 'Novo titulo', href);
66						hideLoading();
67												
68					}
69				});
70			
71	}
72	
73	function exibeFormLogin(){
74		$('html, body').animate({
75		    scrollTop: 0,
76		    scrollLeft: 0
77		}, 800);
78		
79		$(".signin").toggleClass("menu-open");
80		$("fieldset#signin_menu").toggle();
81	}
82
83$(document).ready(function() {
84	
85	if($("#tabs").length > 0)
86		$("#tabs").tabs();
87
88	if($("#aba_em_pregao").length > 0)
89		$("#aba_em_pregao").hide();
90	
91});

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.