From 52adb3fd3d289c4596fa7ec0c437a977f0d8f805 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 17:05:47 +0000 Subject: [PATCH] update changelog dialog --- static/js/changelogDialog.js | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/static/js/changelogDialog.js b/static/js/changelogDialog.js index 117e1975d..92ee922ff 100644 --- a/static/js/changelogDialog.js +++ b/static/js/changelogDialog.js @@ -153,12 +153,19 @@ pandora.ui.changelogDialog = function() { }) ], closeButton: true, - content: Ox.Element(), // FIXME + content: $('').append( + $('
')
+                                    .addClass('OxSelectable')
+                                    .css({margin: '16px'})
+                                    .text(
+                                        JSON.stringify(JSON.parse(value.data), null, '    ')
+                                    )
+                            ),
                             height: height - 48,
                             keys: {enter: 'close', escape: 'close'},
                             maximizeButton: true,
                             removeOnClose: true,
-                            title: formatURL(value.url, value.line),
+                            title: [value.user, value.action, value.changeid].join(' — ')),
                             width: width - 48
                         })
                         .open();
@@ -221,19 +228,6 @@ pandora.ui.changelogDialog = function() {
         that.superClose();
     };
 
-    function formatURL(url, line) {
-        return Ox.encodeHTMLEntities(url.split('?')[0]) + ':' + line;
-    }
-
-    function renderLog(logData) {
-        var $checkbox;
-        return Ox.Element()
-            .css({
-                padding: '8px'
-            })
-            .append($('
').html(logData.text));
-    }
-
     function updateList(key, value) {
         var query = {
                 conditions: key == 'all' ? [