1/** 2 * @Author: Roman Borkunov <broqit> 3 * @Date: 2018-02-13T06:06:09+02:00 4 * @Email: [email protected] 5 * @Filename: libs.js 6 * @Last modified by: broqit 7 * @Last modified time: 2018-03-12T09:06:58+02:00 8 * @License: https://coderiz.pw/license 9 * @Copyright: 2014 - 2017 10 */ 11 12function listInit(form) { 13 ShowLoading(); 14 $.post(dle_root + 'engine/ajax/controller.php?mod=lists', form.serializeArray(), function(response) { 15 HideLoading(); 16 if (response == 'error') { 17 DLEalert('Ðам Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ пÑойÑи авÑоÑизаÑиÑ!', dle_info); 18 } 19 }); 20} 21$(document).ready(function() { 22 $('.nice-select').niceSelect(); 23 24 if($('form[name="lists"] select').val()) { 25 $('form[name="lists"] div.nice-select').attr('data-class', $('form[name="lists"] select').val()); 26 } 27 $('form[name="lists"] select').on('change', function() { 28 var self = $(this), 29 thisValue = self.val(), 30 thisAttrName = self.attr('name'); 31 32 if(thisAttrName == 'list_type') { 33 if(thisValue > 0) { 34 $('form[name="lists"] select[name="list_type"]').addClass('active'); 35 $('form[name="lists"] div.nice-select').attr('data-class', thisValue); 36 } else { 37 $('form[name="lists"] select[name="list_type"]').removeClass('active'); 38 $('form[name="lists"] div.nice-select').removeAttr('data-class'); 39 } 40 } 41 42 43 //alert($(this).val()); 44 listInit(self.parents('form[name="lists"]')); 45 //console.log(self.parents('form[name="lists"]')); 46 }); 47 $('.comm-spoiler p').on('click', function() { 48 $(this).closest(".commets-wrp").find('.comm-itab').removeClass('spoiler-comment'); 49}); 50});
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.