]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - js/unrealircd-admin.js
More towards notes (still not finished)
[irc/unrealircd/unrealircd-webpanel.git] / js / unrealircd-admin.js
index 635cba40e9b9e48b0870d13f0bc0552b799b4407..688fc3b5a3a596753f800ff92a39b55019350097 100644 (file)
@@ -151,13 +151,18 @@ function NewLogEntry(e)
 
     if (data.sync_option != "sync_now")
     {
+        var sync = (data.sync_option == "no_sync") ? false : true;
+        delete data.sync_option;
+
         data_list_table.row.add({
             'Time':data.timestamp,
             'Level':data.level,
             'Subsystem':data.subsystem,
             'Event':data.event_id,
-            'Message':data.msg});
-        if (data.sync_option == "no_sync")
+            'Message':data.msg,
+            'Raw':JSON.stringify(data)});
+
+        if (!sync)
             return;
     }
     data_list_table.draw(true);