From 29b72a61de941f085efbbc80cfe0cbe759634071 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 11 May 2015 21:15:00 +0200 Subject: [PATCH] Encrypted code: links on flags --- src/Gist/Resources/views/base.html.twig | 4 ++-- web/app/js/app.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Gist/Resources/views/base.html.twig b/src/Gist/Resources/views/base.html.twig index 154b154..651407e 100644 --- a/src/Gist/Resources/views/base.html.twig +++ b/src/Gist/Resources/views/base.html.twig @@ -44,10 +44,10 @@ {% block langs %} diff --git a/web/app/js/app.js b/web/app/js/app.js index e9fc483..3922dcd 100644 --- a/web/app/js/app.js +++ b/web/app/js/app.js @@ -127,6 +127,10 @@ var viewerEvents = function() { SyntaxHighlighter.all(); to = ' data-key="#key=' + key + '" '; + + $('.lang').each(function() { + $(this).attr('href', $(this).attr('href') + '#key=' + key); + }); } if ($embedInput.length) {