1(function($) { 2 3 $(function(){ 4 5 // -- 宿° ------------------------------------------------------------------ 6 7 // -- ç¶æ 夿° -------------------------------------------------------------- 8 9 // -- ãã£ãã·ã¥ãªãã¸ã§ã¯ã ------------------------------------------------ 10 11 // -- ã¤ãã³ã -------------------------------------------------------------- 12 $('.js_pagination .js_page a').click(function() { 13 var $this, $page, $form; 14 var gotoPage, currentPage, href; 15 16 $this = $(this); 17 $page = $this.closest('.js_page'); 18 $form = $page.closest('.js_pagination'); 19 20 gotoPage = $page.attr('data-page'); 21 if (gotoPage === 'next' || gotoPage === 'prev') { 22 currentPage = parseInt($page.siblings('.this').attr('data-page'), 10); 23 gotoPage = (gotoPage === 'next') ? (currentPage + 1) : (currentPage - 1); 24 } 25 26 $form.find('.js_to_page').val(gotoPage); 27 28 href = $form.attr('action'); 29 // href += (/\?/.test(href)) ? '&' : '?'; 30 // href += 'page=' + gotoPage; 31 $form.attr('action', href).submit(); 32 return false; 33 }); 34 35 // Submitæã«ä¸è¦ãªGETãã©ã¡ã¼ã¿ãç¡å¹ã«ãã 36 $('form.js_pagination').submit(function() { 37 var method = $(this).attr('method'); 38 if (method !== 'POST' && method !== 'post') { 39 $(this).find(':input').each(function(index) { 40 if ($(this).val() == '') { 41 $(this).prop('disabled', true); 42 } 43 }); 44 } 45 }); 46 }); 47 48})(jQuery);
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.