app/Plugin/ProductPlus42/Resource/template/admin/Product/error_scroll.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : ProductPlus
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <script>
  11. $(function() {
  12.     $('#productplus-error-scroll-link').on('click', function(e) {
  13.         e.preventDefault();
  14.         var $firstInvalid = $('.is-invalid').first();
  15.         if ($firstInvalid.length) {
  16.             $('html, body').animate({
  17.                 scrollTop: $firstInvalid.offset().top - 100
  18.             }, 300);
  19.         }
  20.     });
  21. });
  22. </script>