Permalink
Browse files

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).
  • Loading branch information...
BstName committed Mar 23, 2016
1 parent 42e90e8 commit c86e97aeaad276028013728cf7a3dbd2f7a0fa73
Showing with 0 additions and 1 deletion.
  1. +0 −1 js/insert.js
View
@@ -154,7 +154,6 @@ function edit_link_save(id) {
$("#url-" + id).html(display_link);
$("#keyword-" + id).html('<a href="' + data.url.shorturl + '" title="' + data.url.shorturl + '">' + data.url.keyword + '</a>');
- $("#timestamp-" + id).html(data.url.date);
$("#edit-" + id).fadeOut(200, function(){
$('#main_table tbody').trigger("update");
});

0 comments on commit c86e97a

Please sign in to comment.