Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli_new/moduls/query/admin/js/ |
Upload File : |
$ -> $(".timePicker").datetimepicker changeMonth: true changeYear: true dateFormat: 'dd/mm/yy', timeFormat: "HH:mm" yearRange: '1920:2030' @add_new_answer = -> div = $('#answer_template').clone() cont = $ ".answer_container" len = $(".answers",cont).length div.prop("id","").removeClass "display_none" $('span',div).text (len + 1)+")" $("input:text",div).prop name:"answer_"+len div.appendTo ".answer_container" @delete_answer = (ths) -> th = $ ths prnt = th.parent() ind = $("input:text",prnt).prop "name" ind = if ind.split("_").length is 2 then Number ind.split("_")[1] else Number ind.split("_")[2] prnt.remove() change_index ind @change_index = (index) -> div = $ ".answer_container" len = $(".answers",div).length if len > index $(".answers",div).each (ind) -> if ind >= index th = $ this $('span',th).text (ind + 1)+")" nm = $("input:text",th) nms = nm.prop("name").split("_") $("input:text",th).prop name:nms.join("_")+"_"+ind @add_new_answer = -> div = $('#answer_template').clone() cont = $ ".answer_container" len = $(".answers",cont).length div.prop("id","").removeClass "display_none" $('span',div).text (len + 1)+")" $("input:text",div).prop name:"answer_"+len div.appendTo ".answer_container" @delete_answer = (ths) -> th = $ ths prnt = th.parent() ind = $("input:text",prnt).prop "name" ind = if ind.split("_").length is 2 then Number ind.split("_")[1] else Number ind.split("_")[2] prnt.remove() change_index ind @change_index = (index) -> div = $ ".answer_container" len = $(".answers",div).length if len > index $(".answers",div).each (ind) -> if ind >= index th = $ this $('span',th).text (ind + 1)+")" nm = $("input:text",th) nms = nm.prop("name").split("_") nms.pop() $("input:text",th).prop name:nms.join("_")+"_"+ind @send_form = -> ret = true txt = $ "textarea" #ret = unless txt.val().length then false else true #if ret $(".answer_container .answers,.date_each").each -> unless $("input:text",$(this)).val().length ret = false return unless ret $.alerts.alert "ცარიელი ველები არ გაიგზავნება!","message" return ret #show_hide_map @show_hide_map = (id,param = 'show') -> div = $ "#maper" top_ = if param is "show" then ($(window).scrollTop() + 20) else -1000 if id iframe = $ "#iframe" src = iframe.prop("src").split("?")[0] iframe.prop src:src+"?id="+id div.animate top:top_+"px",500