From 79362e024d205b942015f30042cd3ba54c58f00a Mon Sep 17 00:00:00 2001 From: f Date: Fri, 23 Aug 2019 15:47:12 -0300 Subject: [PATCH] =?UTF-8?q?que=20turbolinks=20respete=20los=20anchors=20(p?= =?UTF-8?q?ara=20los=20art=C3=ADculos=20con=20notas=20al=20pie)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/turbolinks-anchors.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/assets/javascripts/turbolinks-anchors.js diff --git a/app/assets/javascripts/turbolinks-anchors.js b/app/assets/javascripts/turbolinks-anchors.js new file mode 100644 index 00000000..27ca3d33 --- /dev/null +++ b/app/assets/javascripts/turbolinks-anchors.js @@ -0,0 +1,3 @@ +$(document).on('turbolinks:load', function() { + $('a[href^="#"]').data('turbolinks', false); +});