lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.8.0 vs lib/sensu-dashboard/public/js/functions.js in sensu-dashboard-0.8.1

- old
+ new

@@ -151,11 +151,10 @@ $('span#client_count').html(row_count); }); } function fetchStashes() { - $('table#events > tbody').empty(); $.ajax({ type: 'GET', url: '/stashes.json', success: function(data, textStatus, xhr) { $.ajax({ @@ -179,9 +178,10 @@ name: stash, keys: stash_keys.join(', '), values: stash_values }); } + $('table#events > tbody').empty(); $('#stashTemplate').tmpl(stashes).appendTo('table#events > tbody'); $('tbody > tr').click(function() { $('div#event_details_modal').empty(); var row = $(this).parent().children().index($(this)); $('#stashDetailsTemplate').tmpl(stashes[row]).appendTo('div#event_details_modal');