Browse Source

Fix: HTML injection

master
Ilya Konanykhin 8 years ago
parent
commit
4dcce60fb8
  1. 6
      app/assets/javascripts/time_entries.js

6
app/assets/javascripts/time_entries.js

@ -59,9 +59,9 @@ $(document).ready(function () {
var start_date = row.data("start_date");
var duration = row.data("duration");
var description = row.data("description");
$("#work_entry_start_date").html(start_date);
$("#work_entry_duration").html(duration);
$("#work_entry_description").html(description);
$("#work_entry_start_date").text(start_date);
$("#work_entry_duration").text(duration);
$("#work_entry_description").text(description);
$("#confirmation_delete").data("entry_id", entry_id);
});

Loading…
Cancel
Save