1document.onkeydown = DocumentHelper.KeyPress; 2$(function () { 3 $(window).scroll(function () { 4 var top = parseInt($(window).scrollTop()); 5 if (top > 300) { 6 $(".search-panel-div .content-main").addClass("search-panel-static"); 7 $(".doc-left-menu").addClass("doc-left-menu-static"); 8 var pos = $(".doc-left-menu-container").position(); 9 var w = parseInt($(".doc-left-menu-container").css('width')); 10 var mt = parseInt($(".doc-left-menu-container").css('margin-top')); 11 DocumentHelper.HintBodyEnabled(); 12 DocumentHelper.LeftMenuHintEnabled(); 13 } 14 else { 15 $(".search-panel-div .content-main").removeClass("search-panel-static"); 16 $(".doc-left-menu").removeClass("doc-left-menu-static"); 17 DocumentHelper.HintBodyEnabled(); 18 DocumentHelper.LeftMenuHintEnabled(); 19 } 20 }); 21 22 var adjustment; 23 24 $('.has-clear input[type="text"]').on('input propertychange', function () { 25 var $this = $(this); 26 var visible = Boolean($this.val()); 27 $this.siblings('.form-control-clear').toggleClass('hidden', !visible); 28 }).trigger('propertychange'); 29 30 $('.form-search-doc .form-control-clear').click(function () { 31 $(this).siblings('input[type="text"]').val('') 32 .trigger('propertychange').focus(); 33 }); 34 35 $(".form-search-doc .search-text").autocomplete({ 36 source: function (request, response) { 37 if ($(".search-context").val() != "2") { 38 $.ajax({
39 url: "/" + languageUI + "/Document/Autocomplete", 40 dataType: "json", 41 data: { 42 text: request.term 43 }, 44 success: function (data) { 45 response(data); 46 } 47 }); 48 } 49 }, 50 minLength: 2, 51 select: function (event, ui) { 52 if ($(".search-context").val() != "2") { 53 $(".search-text").val(ui.item.value); 54 window.location.href = '/' + languageUI + '/Document/DetailById?documentId=' + ui.item.id; 55 $(".search-doc-id").val(ui.item.id); 56 DocumentHelper.SearchSubmit(); 57 } 58 } 59 }).keyup(function (e) { 60 $("#excludeDocuments").val(''); 61 if (e.which === 13) { 62 $(".ui-menu-item").hide(); 63 } 64 }); 65 66 DocumentHelper.GetLast('/Document/LastAdded', 'underline-docs-new'); 67 DocumentHelper.LeftMenuHintEnabled(); 68 69 DocumentHelper.SearchSubmit(); 70 DocumentHelper.InitSelectEditions(1); 71 DocumentHelper.ToParagraphScroll(1); 72 73 //TODO: ÑкÑÑÑÑ ÑкÑол 74 DocumentHelper.HideScrollLock(false); 75 76 $(".doc-left-menu-item").click(function () { 77 $(".doc-left-menu-hint").hide(); 78 }); 79 80 $(".filter-container").find(".doc-sort").click(function () { 81 var desc = $(".desc").val(); 82 if (desc == 'true') 83 $(".desc").val(false); 84 else 85 $(".desc").val(true); 86 87 $(".sort").val($(this).attr('type')); 88 DocumentHelper.SearchSubmit(); 89 ConsultingHelper.SearchSubmit(); 90 TopicsHelper.SearchSubmit(); 91 return false; 92 }); 93 94 $(".doc-body").on("mousemove", ".paragraph", function (event) { 95 DocumentHelper.ShowBookmarkButtons($(this), true, true); 96 }); 97 98 //Document add to forum 99 $(".doc-body").on("click", ".btn-add-to-forum", function (event) { 100 var paragraph = $(this).parent('.bookmark-buttons').attr('paragraph'); 101 ForumHelper.CreateQuestion(paragraph); 102 return false; 103 }); 104 105 //Mousemove Left menu in detail document 106 $(".buttongroup-vertical-container .button-icon").mousemove(function (event) { 107 var position = $('.doc-left-menu-container').position(); 108 var width = parseInt($('.doc-left-menu-container').css('width')); 109 var $hint = $(this).find(".button-icon-hint"); 110 $(".bookmark").hide(); 111 $hint.css('left', parseInt(position.left) + width + 'px'); 112 $hint.show(); 113 }); 114 115 $(".buttongroup-vertical-container .button-icon").mouseout(function (event) { 116 var $hint = $(this).find(".button-icon-hint"); 117 $hint.hide(); 118 }); 119 120 $(".doc-body").on("mousemove", ".bookmark-buttons", function (event) { 121 DocumentHelper.ShowBookmarkButtons($(this), true, false); 122 }); 123 124 $(".doc-body").on("click", ".btn-add-bookmark", function (event) { 125 if (!authorized) { 126 $("#modalLogin").modal(); 127 return false; 128 } 129 var prgNumber = $(this).attr("paragraph-number"); 130 var isComment = $(this).attr("is-comment"); 131 132 $(".paragrah-number").val(prgNumber); 133 $(".comment-document-id").val($(".id").val()); 134 $(".is-comment").val(isComment); 135 $('#modalBookMark').modal('toggle'); 136 return false; 137 }); 138 139 $(".doc-body").on("click", ".btn-add-comment", function (event) { 140 if (!authorized) { 141 $("#modalLogin").modal(); 142 return false; 143 } 144 var prgNumber = $(this).attr("paragraph-number"); 145 var isComment = $(this).attr("is-comment"); 146 $(".paragrah-number").val(prgNumber); 147 $(".comment-document-id").val($(".id").val()); 148 $(".is-comment").val(isComment); 149 $('#modalComment').modal('toggle'); 150 151 return false; 152 }); 153 154 $(".doc-body").on("click", ".btn-copy-paragraph", function (event) { 155 var prgNumber = $(this).attr("paragraph-number"); 156 var ngr = $('.ngr').val(); 157 var lang = $('.lang').val(); 158 $(".paragrah-number").val(prgNumber); 159 $('#modalCopyParagraph').modal('toggle'); 160 $('#parapraphLinkInput').val('https://zan.kz/ru/Document/Detail?ngr=' + ngr + '&langId=' + lang + '¶graphNumber=' + prgNumber) 161 return false; 162 });
163 164 $("#copyParagraphLink").on("click", function (e) { 165 document.getElementById("parapraphLinkInput").select(); 166 document.execCommand("copy"); 167 toastr["success"]("СÑÑлка ÑкопиÑована в бÑÑеÑ"); 168 }); 169 170 //пеÑÐµÑ Ð¾Ð´ по ÑÑÑлкам 171 $(".link-to-document").on("click", "a", function (event) { 172 event.preventDefault($(".doc-window-1").length); 173 var href = $(this).attr("href"); 174 if (href == "#") return; 175 else if (href.indexOf(".htm") > 0) { DocumentHelper.OpenAttDocument(href); return false; } 176 else if (href.indexOf('http') > -1 || href.indexOf('www') > -1) { window.open(href); return; } 177 else if (href.substring(0, 1) == "/") return; 178 else if ($(".doc-window-1").length > 0) { DocumentHelper.ChangeLink(href); } 179 else { 180 var hrefArr = $(this).attr('href').split("#"); 181 182 if (hrefArr[1] != undefined) { 183 if (hrefArr[0].includes("npl")) { 184 var npl = hrefArr[0].split(':'); 185 var langIdDoc = 1; 186 if (languageUI == "kk") 187 langIdDoc = 3; 188 url = "/" + languageUI + "/Document/Detail?ngr=" + npl[1] + "&langId=" + langIdDoc + "¶graphNumber=" + hrefArr[1]; 189 window.open(url, '_blank'); 190 } else { 191 var langIdDoc = 1; 192 if (languageUI == "kk") 193 langIdDoc = 3; 194 url = "/" + languageUI + "/Document/Detail?ngr=" + hrefArr[0] + "&langId=" + langIdDoc + "¶graphNumber=" + hrefArr[1]; 195 window.open(url, '_blank'); 196 } 197 } 198 else if (hrefArr[0].includes("trm")) { 199 hrefArr = $(this).attr('href').split(':'); 200 201 $.ajax({
202 url: "/" + languageUI + "/Dictionary/GetId?code=" + hrefArr[1] + "&lang=" + languageUI, 203 method: "GET", 204 async: true 205 }).done(function (output) { 206 //console.log(output); 207 url = '/' + languageUI + '/Dictionary/Detail?id=' + output; 208 $.ajax({ 209 url: '/' + languageUI + '/Dictionary/DetailJson?id=' + output, 210 method: "GET", 211 async: true 212 }).done(function (itog) { 213 //console.log(itog); 214 $('.description-link').html(itog.description); 215 $('#dataModal').modal("show"); 216 }) 217 218 }) 219 } 220 return false; 221 }; 222 }); 223 224 //пеÑÐµÑ Ð¾Ð´ по ÑÑÑлкам из Ñаблона 225 $(".link-to-document-from-template").on("click", "a", function (event) { 226 event.preventDefault($(".doc-window-1").length); 227 var href = $(this).attr("href"); 228 if (href == "#") return; 229 else if (href.indexOf(".htm") > 0) { DocumentHelper.OpenAttDocument(href); return false; } 230 else if (href.indexOf('http') > -1 || href.indexOf('www') > -1) { window.open(href); return; } 231 else if (href.substring(0, 1) == "/") return; 232 else { 233 var hrefArr = $(this).attr('href').split("#"); 234 235 if (hrefArr[1] != undefined) { 236 var langIdDoc = 1; 237 if (languageUI == "kk") 238 langIdDoc = 3; 239 url = "/" + languageUI + "/Document/Detail?ngr=" + hrefArr[0] + "&langId=" + langIdDoc + "¶graphNumber=" + hrefArr[1]; 240 window.open(url, '_blank'); 241 } 242 else if (hrefArr[0].includes("trm")) { 243 hrefArr = $(this).attr('href').split(':'); 244 245 $.ajax({
246 url: "/" + languageUI + "/Dictionary/GetId?code=" + hrefArr[1] + "&lang=" + languageUI, 247 method: "GET", 248 async: true 249 }).done(function (output) { 250 //console.log(output); 251 url = '/' + languageUI + '/Dictionary/Detail?id=' + output; 252 $.ajax({ 253 url: '/' + languageUI + '/Dictionary/DetailJson?id=' + output, 254 method: "GET", 255 async: true 256 }).done(function (itog) { 257 //console.log(itog); 258 $('.description-link').html(itog.description); 259 $('#dataModal').modal("show"); 260 }) 261 262 }) 263 } 264 return false; 265 }; 266 }); 267 268 //пеÑÐµÑ Ð¾Ð´ по ÑÑÑлкам из новоÑÑей 269 $(".link-to-document-from-news").on("click", "a", function (event) { 270 event.preventDefault($(".detail-news-text").length); 271 var href = $(this).attr("href"); 272 //console.log("href 1 = " + href); 273 if (href.indexOf("#") !== -1) { 274 var hrefArr = $(this).attr('href').split("/"); 275 var ngrParahraph = hrefArr[5].split("#"); 276 277 //console.log("href 2 = " + ngrParahraph); 278 if (ngrParahraph[1] != undefined) { 279 var langIdDoc = 1; 280 if (languageUI == "kk") 281 langIdDoc = 3; 282 url = "/" + languageUI + "/Document/Detail?ngr=" + ngrParahraph[0] + "&langId=" + langIdDoc + "¶graphNumber=" + ngrParahraph[1]; 283 window.open(url, '_blank'); 284 } 285 else if (ngrParahraph[0].includes("trm")) { 286 ngrParahraph = $(this).attr('href').split(':'); 287 288 $.ajax({
289 url: "/" + languageUI + "/Dictionary/GetId?code=" + ngrParahraph[1] + "&lang=" + languageUI, 290 method: "GET", 291 async: true 292 }).done(function (output) { 293 //console.log(output); 294 url = '/' + languageUI + '/Dictionary/Detail?id=' + output; 295 $.ajax({ 296 url: '/' + languageUI + '/Dictionary/DetailJson?id=' + output, 297 method: "GET", 298 async: true 299 }).done(function (itog) { 300 //console.log(itog); 301 $('.description-link').html(itog.description); 302 $('#dataModal').modal("show"); 303 }) 304 305 }) 306 } 307 return false; 308 } else { 309 window.open(href, '_blank'); 310 }; 311 }); 312 313 $(".doc-info-right").on("click", "a", function (event) { 314 event.preventDefault(); 315 var href = $(this).attr("href"); 316 if (href == "#") return; 317 else if (href.indexOf(".htm") > 0) { DocumentHelper.OpenAttDocument(href); return false; } 318 else if (href.indexOf('http') > -1 || href.indexOf('www') > -1) { window.open(href); return; } 319 else if (href.substring(0, 1) == "/") return; 320 else if ($(".doc-window-1").length > 0) { DocumentHelper.ChangeLink(href); } 321 else { 322 var hrefArr = $(this).attr('href').split("#"); 323 324 if (hrefArr[1] != undefined) { 325 var langIdDoc = 1; 326 if (languageUI == "kk") 327 langIdDoc = 3; 328 url = "/" + languageUI + "/Document/Detail?ngr=" + hrefArr[0] + "&langId=" + langIdDoc + "¶graphNumber=" + hrefArr[1]; 329 window.open(url, '_blank'); 330 } 331 else if (hrefArr[0].includes("trm")) { 332 hrefArr = $(this).attr('href').split(':'); 333 334 $.ajax({
335 url: "/" + languageUI + "/Dictionary/GetId?code=" + hrefArr[1] + "&lang=" + languageUI, 336 method: "GET", 337 async: true 338 }).done(function (output) { 339 //console.log(output); 340 url = '/' + languageUI + '/Dictionary/Detail?id=' + output; 341 $.ajax({ 342 url: '/' + languageUI + '/Dictionary/DetailJson?id=' + output, 343 method: "GET", 344 async: true 345 }).done(function (itog) { 346 //console.log(itog); 347 $('.description-link').html(itog.description); 348 $('#dataModal').modal("show"); 349 }) 350 351 }) 352 } 353 return false; 354 }; 355 }); 356 357 if ($(".doc-body").length > 0) { 358 $(".search-context").val("2"); 359 } 360 361 if ($(".hint-body").length > 0) { 362 var lang = $('.lang').val(); 363 var ngr = $('.ngr').val(); 364 var documentId = $('.document-id').val(); 365 } 366 367 //Left menu in detail document 368 var h = parseInt($(".doc-body-container").css('height')) + 'px'; 369 $(".doc-body-container").prev().css('height', h); 370 371 DocumentHelper.HintBodyEnabled(); 372 373 //Advanded search show 374 $("#search-advanced").click(function () { 375 $(".advanced-search").toggle("slow"); 376 var $icon = $("#search-advanced span"); 377 if ($icon.hasClass('fa-caret-down')) { 378 $icon.addClass('fa-caret-up'); 379 $icon.removeClass('fa-caret-down'); 380 } 381 else { 382 $icon.addClass('fa-caret-down'); 383 $icon.removeClass('fa-caret-up'); 384 } 385 DocumentHelper.HintBodyEnabled(); 386 DocumentHelper.LeftMenuHintEnabled(); 387 }); 388 389 //Init tree elements 390 $('.dic-types-tree').aciTree({ 391 ajax: { 392 url: "/" + languageUI + '/nsi/DictionaryTypesGetTree' 393 }, 394 checkbox: true, 395 checkboxChain: false 396 }); 397 398 //TODO: ÑаÑÑиÑеннÑй поиÑк 399 $('.npa-types-tree').aciTree({ 400 ajax: { 401 url: "/" + languageUI + '/nsi/npaTypesGetTree' 402 }, 403 checkbox: true, 404 checkboxChain: false 405 }); 406 407 $('.i-checks-search-param').iCheck({ 408 checkboxClass: 'icheckbox_square-green', 409 radioClass: 'iradio_square-green', 410 }); 411 412 $('.near-check').on('ifChecked', function (event) { 413 $(".every-word-and").iCheck('check'); 414 $(".every-word-or").iCheck('uncheck'); 415 $(".every-word-or").iCheck('disable'); 416 417 $('.near-check-hidden').val('True'); 418 }); 419 420 $('.near-check').on('ifUnchecked', function (event) { 421 $(".every-word-or").iCheck('enable'); 422 $('.near-check-hidden').val('False'); 423 }); 424 425 $('.language-tree').aciTree({ 426 ajax: { 427 url: "/" + languageUI + '/nsi/LanguagesGetTree' 428 }, 429 checkbox: true, 430 checkboxChain: false 431 }); 432 433 $('.tmp-language-tree').aciTree({ 434 ajax: { 435 url: "/" + languageUI + '/nsi/LanguagesGetTree' 436 }, 437 checkbox: true, 438 checkboxChain: false 439 }); 440 441 $('.regions-tree').aciTree({ 442 ajax: { 443 url: "/" + languageUI + '/nsi/regionsGetTree?id=' 444 }, 445 checkbox: true, 446 checkboxChain: false 447 }); 448 449 $('.classifiers-tree').aciTree({ 450 ajax: { 451 url: "/" + languageUI + '/nsi/classifiersGetTree?id=' 452 }, 453 checkbox: true, 454 checkboxChain: false 455 }); 456 457 $('.departments-tree').aciTree({ 458 ajax: { 459 url: "/" + languageUI + '/nsi/departmentsGetTree?id=' 460 }, 461 checkbox: true, 462 checkboxChain: false 463 }); 464 465 $('.dev-agencies-tree').aciTree({ 466 ajax: { 467 url: "/" + languageUI + '/nsi/devAgenciesGetTree?id=' 468 }, 469 checkbox: true, 470 checkboxChain: false 471 }); 472 473 $('.title-prefixes-tree').aciTree({ 474 ajax: { 475 url: "/" + languageUI + '/nsi/titlePrefixesGetTree?id=' 476 }, 477 checkbox: true, 478 checkboxChain: false 479 }); 480 481 $('.tmp-classifiers-tree').aciTree({ 482 ajax: { 483 url: "/" + languageUI + '/nsi/classifiersGetTree?id=' 484 }, 485 checkbox: true, 486 checkboxChain: false 487 }); 488 489 $('.sources-tree').aciTree({ 490 ajax: { 491 url: "/" + languageUI + '/nsi/sourcesGetTree?id=' 492 }, 493 checkbox: true, 494 checkboxChain: false 495 }); 496 497 $('.regagencies-tree').aciTree({ 498 ajax: { 499 url: "/" + languageUI + '/nsi/regAgenciesGetTree?id=' 500 }, 501 checkbox: true, 502 checkboxChain: false 503 });
504 505 $('.sections-tree').aciTree({ 506 ajax: { 507 url: "/" + languageUI + '/nsi/npaSectionsGetTree?id=' 508 }, 509 checkbox: true, 510 checkboxChain: false 511 }); 512 513 $('.initregions-tree').aciTree({ 514 ajax: { 515 url: "/" + languageUI + '/nsi/initregionsGetTree?id=' 516 }, 517 checkbox: true, 518 checkboxChain: false 519 }); 520 521 //TODO: оÑиÑÑиÑÑ Ð´ÐµÑево 522 DocumentHelper.UpdateTrees(); 523 524 //TODO: 525 CommonHelper.AciOnSelect('tmp-language-tree', 'selectedLanguage', 'unselectedLanguage', true); 526 CommonHelper.AciOnSelect('tmp-classifiers-tree', 'selectedClassifier', 'unselectedClassifier', true); 527 528//TODO: 529 CommonHelper.AciOnSelect('departments-tree', 'extselectedDepartments', 'extunselectedDepartments', true); 530 CommonHelper.AciOnSelect('classifiers-tree', 'extselectedClassifiers', 'extunselectedClassifiers', true); 531 CommonHelper.AciOnSelect('regions-tree', 'extselectedRegionActions', 'extunselectedRegionActions', true); 532 CommonHelper.AciOnSelect('initregions-tree', 'extselectedRegionInits', 'extunselectedRegionInits', true); 533 CommonHelper.AciOnSelect('npa-types-tree', 'extselectedNpaTypes', 'extunselectedNpaTypes', true); 534 CommonHelper.AciOnSelect('language-tree', 'selectedLanguage', 'unselectedLanguage', true); 535 CommonHelper.AciOnSelect('sections-tree', 'extselectedSections', 'extunselectedSections', true); 536 CommonHelper.AciOnSelect('sources-tree', 'extselectedSources', 'extunselectedSources', true); 537 CommonHelper.AciOnSelect('regagencies-tree', 'extselectedRegAgencies', 'extunselectedRegAgencies', true); 538 CommonHelper.AciOnSelect('dev-agencies-tree', 'extselectedDevAgencies', 'extunselectedDevAgencies', true); 539 CommonHelper.AciOnSelect('title-prefixes-tree', 'exludePrefixes', 'includePrefixes', false); 540 541 //TODO: 542 CommonHelper.AciOnSelect('dic-types-tree', 'selectedDicTypes', 'unselectedDicTypes', true); 543 544}) 545 546function parseHTML(html) { 547 var t = document.createElement('template'); 548 t.innerHTML = html; 549 return t.content.cloneNode(true); 550} 551 552document.addEventListener('DOMContentLoaded', function () { 553 new SelectionMenu({ 554 container: document.querySelector('#wrapper'), 555 content: document.querySelector('#dictionaryMenu'), 556 handler: function (event) { 557 var target = event.target, 558 id = target.id || target.parentNode.id; 559 }, 560 onselect: function (e) { 561 var fullText = this.selectedText; 562 var truncatedText = fullText.length > 30 ? fullText.slice(0, 30) + '...' : fullText; 563 document.getElementById("selectedFullText").value = fullText; 564 document.getElementById("selectText").innerHTML = '"' + truncatedText.replace(/\s+/g, ' ') + '"'; 565 $(".words").html(''); 566 $.ajax({
567 url: '/' + languageUI + '/Dictionary/Search/', 568 data: { searchText: truncatedText, size: 3, sortByDesc: true } 569 }).done(function (words) { 570 if (words.words[0] != null) { 571 var dic = 1; 572 $.each(words.words, function (key, value) { 573 var desc = $.parseHTML(value.description); 574 var html = ' <div class="dictionary-title"><a href="' + '/' + languageUI + '/Dictionary/Detail/?id=' + value.id + '">' + value.title + '</a></div>'; 575 html += ' <div class="dictionary-descr"> СловаÑÑ: ' + value.dictionaryType.name + '</div>'; 576 html += ' <div class="dictionary-text desc-' + dic + '"></div>'; 577 $(".words").append(html); 578 $('.desc-' + dic).append(desc[0].textContent); 579 dic = dic + 1; 580 }); 581 } else { 582 $(".words").html('ÐиÑего не найдено: <br/><a href="#" id="openModalDic" class="btn btn-success btn-zakon" style="font-size: 12px; margin-left: 15px" data-toggle="modal" data-target="#modalAddWordToDic">ÐобавиÑÑ Ð² ÑловаÑÑ</a>'); 583 $('input[name="DictionaryText"]').val(document.getElementById("selectedFullText").value); 584 } 585 586 }); 587 }, 588 debug: false 589 }); 590 591}); 592 593// СобÑÑие пÑи нажаÑии добавиÑÑ Ð² ÑловаÑÑ 594$(document).on('click', '#saveWordToDic', function () { 595 var data = { 596 DocumentId: $('input[name=documentId]').val(), 597 DictionaryText: $('input[name=DictionaryText]').val() 598 }; 599 $.ajax({
600 url: '/' + languageUI + '/Document/DictionaryAdd', 601 data: data 602 }).done(function (data) { 603 604 }); 605 606}); 607 608$(document).on('click', '#openModalDic', function () { 609 if (!authorized) { 610 $("#modalLogin").modal(); 611 return false; 612 } 613}); 614 615var isVisible1 = false; 616var isVisible2 = false; 617 618$('#doc-body-1').scroll(function () { 619 var shouldBeVisible = $('#doc-body-1').scrollTop() > 200; 620 if (shouldBeVisible && !isVisible1) { 621 isVisible1 = true; 622 $('#doc_1_btn').show(); 623 } else if (isVisible1 && !shouldBeVisible) { 624 isVisible1 = false; 625 $('#doc_1_btn').hide(); 626 } 627}); 628 629$('#doc-body-2').scroll(function () { 630 var shouldBeVisible = $('#doc-body-2').scrollTop() > 200; 631 if (shouldBeVisible && !isVisible2) { 632 isVisible2 = true; 633 $('#doc_2_btn').show(); 634 } else if (isVisible2 && !shouldBeVisible) { 635 isVisible2 = false; 636 $('#doc_2_btn').hide(); 637 } 638}); 639 640$(function () { 641 $('#doc_1_btn').click(function (event) { 642 event.preventDefault(); 643 $('#doc-body-1').animate({ 644 scrollTop: 0 645 }, 'slow'); 646 }) 647}); 648$(function () { 649 $('#doc_2_btn').click(function (event) { 650 event.preventDefault(); 651 $('#doc-body-2').animate({ 652 scrollTop: 0 653 }, 'slow'); 654 }); 655}); 656 657$(function () { 658 $(".vote_yes").click(function () { 659 var data = { 660 ConsultingId: $('input[name=ConsultingId]').val(), 661 VoteStatus: true 662 }; 663 //console.log(data); 664 $.ajax({
665 url: '/' + languageUI + '/Consulting/AddVote', 666 data: data 667 }).done(function (data) { 668 $(".vote-class").css({ display: "none" }); 669 $(".after-vote").css({ display: "block" }); 670 }); 671 }); 672 673 $(".vote_no").click(function () { 674 $(".vote-class").css({ display: "none" }); 675 $(".after-no-vote").css({ display: "block" }); 676 }); 677 678 $(".add-value-to").click(function () { 679 var textVal = $("#vote-text").val(); 680 var data = { 681 ConsultingId: $('input[name=ConsultingId]').val(), 682 VoteStatus: false, 683 Text: $('textarea[name=Text]').val() 684 }; 685 $.ajax({ 686 url: '/' + languageUI + '/Consulting/AddVote', 687 data: data 688 }).done(function (data) { 689 $(".vote-class").css({ display: "none" }); 690 $(".after-no-vote").css({ display: "none" }); 691 $(".after-vote").css({ display: "block" }); 692 }); 693 }); 694}); 695 696$("#favoriteListGroup").change(function () { 697 $("#FavGroupId").val(this.value); 698});
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.