From c86e97aeaad276028013728cf7a3dbd2f7a0fa73 Mon Sep 17 00:00:00 2001 From: "BestNa.me Labs" Date: Wed, 23 Mar 2016 20:59:18 +0100 Subject: [PATCH] Remove an ineffective line of code Removes an ineffective line of code in `edit_link_save()` with an undefined variable `data.url.date` (this is because `data.url.date` is not set in the function invoked via ajax, i.e. in `yourls_edit_link()` in functions.php). --- js/insert.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/insert.js b/js/insert.js index 7c50d7b..abb2e90 100644 --- a/js/insert.js +++ b/js/insert.js @@ -154,7 +154,6 @@ function edit_link_save(id) { $("#url-" + id).html(display_link); $("#keyword-" + id).html('' + data.url.keyword + ''); - $("#timestamp-" + id).html(data.url.date); $("#edit-" + id).fadeOut(200, function(){ $('#main_table tbody').trigger("update"); }); -- 2.42.0