mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Merge pull request #11787 from AlessandroLorenzi/f11581/translate_data
fix(frio): "Data" move header in template w/ l10n
This commit is contained in:
commit
71cba85f8c
2 changed files with 8 additions and 2 deletions
|
@ -64,10 +64,16 @@ $(function(){
|
|||
});
|
||||
|
||||
var elm = $modal.find(".event-data")[0];
|
||||
const event_data_header = $modal.find(".event-data-header")[0];
|
||||
|
||||
// Cleanup event data
|
||||
event_data_header.hidden = true;
|
||||
elm.innerHTML = "";
|
||||
|
||||
// Fill out event data
|
||||
var data = element.dataset.data;
|
||||
if (data !== "") {
|
||||
elm.innerHTML = "<h3>Data</h3>";
|
||||
event_data_header.hidden = false;
|
||||
data = JSON.parse(data);
|
||||
elm.innerHTML += recursive_details("", data);
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<h3 class="header-event-data">{{$l10n.Data}}</h3>
|
||||
<div class="event-source">
|
||||
</div>
|
||||
<div class="event-data">
|
||||
|
|
Loading…
Reference in a new issue