lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.9.6 vs lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.9.7.beta

- old
+ new

@@ -173,11 +173,11 @@ } }}); $.getJSON('/client/'+selectedEvent['client']+'.json', function(data) { var client = data; - client['subscriptions'] = client['subscriptions'].join(', '); + client['subscriptions'] = client['subscriptions'].sort().join(', '); $('#clientDetailsRowTemplate').tmpl(client).appendTo('div#event_details_modal > div#client_data'); $('div#event_details_modal > div#client_data > h1').click(function() { $(this).select(); }); }); @@ -232,10 +232,10 @@ // skip node if subscription filters exist and the subscription is not in the filter if ((Object.size(grouped_filters['subscription']) > 0) && ($.inArray(client['name'], grouped_filters['subscription']) == -1)) { continue; } - client['subscriptions'] = client['subscriptions'].join(', '); + client['subscriptions'] = client['subscriptions'].sort().join(', '); m_clients.push(client); } $('#clientTemplate').tmpl(m_clients).prependTo('table#clients > tbody');