]> git.mxchange.org Git - friendica.git/commitdiff
fix(frio): "Data" move header in template w/ l10n
authorAlessandro Lorenzi <me@alorenzi.eu>
Thu, 28 Jul 2022 16:06:31 +0000 (18:06 +0200)
committerAlessandro Lorenzi <me@alorenzi.eu>
Thu, 28 Jul 2022 16:10:01 +0000 (18:10 +0200)
fix: #11581

view/theme/frio/js/module/admin/logs/view.js
view/theme/frio/templates/admin/logs/view.tpl

index 245518822f10153372aaca951b597b482dc48288..9faf9ec890dca6143e577de2313c76202dde8c9c 100644 (file)
@@ -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);
                }
index d47c0361de7110b83dfb09a04aa475a338cb3cbc..d5ad41f217dfe2378e8752b2d948af09f77013bf 100644 (file)
                                        </tbody>
                                </table>
 
-
+                               <h3 class="header-event-data">{{$l10n.Data}}</h3>
                                <div class="event-source">
                                </div>
                                <div class="event-data">