From c02e8044c23da717ad431346106c4224db88fa60 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Thu, 30 Jun 2016 10:47:24 +0200 Subject: [PATCH 1/2] Making links alive This is a test. Sorry, I cannot check now if it works. --- js/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/js.js b/js/js.js index 0c0fde0..8b4353a 100644 --- a/js/js.js +++ b/js/js.js @@ -9,7 +9,7 @@ $(document).ready(function() { $(window.location.hash).modal('show'); // add direct link to modal window $(".link").empty(); - $(".link").append("Link to this command: "+window.location.href+""); + $(".link").append("Link to this command: "+window.location.href+""); } // add hash to URL when modal is opened @@ -17,7 +17,7 @@ $(document).ready(function() { window.location.hash = $(this).attr("data-target"); // add direct link to modal window $(".link").empty(); - $(".link").append("Link to this command: "+window.location.href+""); + $(".link").append("Link to this command: "+window.location.href+""); }); // remove hash from URL when modal is closed From 42ae697de418845dd610f03c3c14da1d3ad03fc1 Mon Sep 17 00:00:00 2001 From: Reto Kromer Date: Thu, 30 Jun 2016 11:08:26 +0200 Subject: [PATCH 2/2] without `"` --- js/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/js.js b/js/js.js index 8b4353a..ed5159f 100644 --- a/js/js.js +++ b/js/js.js @@ -9,7 +9,7 @@ $(document).ready(function() { $(window.location.hash).modal('show'); // add direct link to modal window $(".link").empty(); - $(".link").append("Link to this command: "+window.location.href+""); + $(".link").append("Link to this command: "+window.location.href+""); } // add hash to URL when modal is opened @@ -17,7 +17,7 @@ $(document).ready(function() { window.location.hash = $(this).attr("data-target"); // add direct link to modal window $(".link").empty(); - $(".link").append("Link to this command: "+window.location.href+""); + $(".link").append("Link to this command: "+window.location.href+""); }); // remove hash from URL when modal is closed