Skip to content

Commit

Permalink
Remove an ineffective line of code
Browse files Browse the repository at this point in the history
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 c86e97a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down

0 comments on commit c86e97a

Please sign in to comment.