1/*************************************************************** 2 * Copyright notice 3 * 4 * (c) 2012 Georg Paul, opendo GmbH <[email protected]> 5 * All rights reserved 6 * 7 * This script is part of the TYPO3 project. The TYPO3 project is 8 * free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * The GNU General Public License can be found at 14 * http://www.gnu.org/copyleft/gpl.html. 15 * A copy is found in the textfile GPL.txt and important notices to the license 16 * from the author is found in LICENSE.txt distributed with these scripts. 17 * 18 * 19 * This script is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU General Public License for more details. 23 * 24 * This copyright notice MUST APPEAR in all copies of the script! 25 ***************************************************************/ 26 27(function () { "use strict"; 28 29 var showAllComments = function ($commentsToShow) { 30 $commentsToShow.removeClass('hidden'); 31 }; 32 33 $(document).ready(function () { 34 $('.comment .show-all a').bind('click', function (e) { 35 e.preventDefault(); 36 37 showAllComments($(this).parents('.comment').find('.response-list .hidden')); 38 $(this).remove(); 39 }); 40 41 // captcha 42 if ($('html').hasClass('logged-out')) { 43 $('.add-first-comment form, .add-comment form').each(function () { 44 var $captchaContainer = $(this).find('.captcha-container'); 45 46 $(this).submit(function (e) { 47 if ($captchaContainer.is(':visible')) { 48 return true; 49 } 50 $captchaContainer.slideDown(); 51 return false; 52 }); 53 }); 54 } 55 }); 56 57}());
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.