PageSourceSearch

https://dewiar.com/js/settings_r9.js

js dewiar.com collected 2026-10-05 02:12:16 UTC 1,780 bytes, 43 lines download raw bytes

1$(document).ready(function(){
2
3$(document).on("click",'#f_settings button.save',function()
4{
5var stregim=$("#stregim").val();
6if(stregim==9)
7{
8var arr = [];
9var n_input=$("#opros_sett input").length;
10var admA=$("#admA").val();
11var kodA=$("#kodA").val();
12var admA_set=$("#admA_set").val(); 
13$.postJSON = function(url, data, callback){$.post(url, data, callback, "json");};
14var uRl="/settings_save_r9.php";
15// перебираем все папки и пересохраняем timestamp к каждой
16$('#opros_sett input').each(function(i,elem)
17{
18var val=$(elem).val();
19var timex=$(elem).attr("id").replace("x_","");
20if(val!=false){arr[i] = timex+"::"+val;}
21});//.each(function(i,elem)
22$.postJSON(uRl,{'admA':admA,'kodA':kodA,'admA_set':admA_set,'save':1,'arr':arr}, function(data){if(data.dell==0){Mes_shn_ok(data.mes,0,"#f_settings button.save");}else{Mes_shn_close(data.mes);}});//$.postJSON
23}//if(stregim==9)
24});
25
26// добавляем пустой параметр
27$(document).on('click','#add_answer',function(){
28var n=$("#opros_sett input").length;// считаем сколько уже полей input
29if(n>50){Mes_shn_close("Разрешено не более 50 вариантов ответа!");}
30else
31{
32var time =new Date().getTime();
33$("#opros_sett .form-row").append('<div class="form-group col-sm-12"><input type="text" class="form-control form-control-sm" placeholder="Ответ" id="x_'+time+'" value=""><span title="удалить" class="opros_del mega-octicon octicon-remove-close"></span></div>');
34$("#x_"+time).focus();
35}
36});//$(document).on('click','
37
38// удаляем ответ
39$(document).on('click','#opros_sett .opros_del',function(){
40$(this).closest("div.form-group").remove();
41});//$(document).on('click','
42
43});//$(document).ready(function(){

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.