diff options
Diffstat (limited to 'web-app/static/diff.html')
-rw-r--r-- | web-app/static/diff.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web-app/static/diff.html b/web-app/static/diff.html index 4c3ea2c..be5b74a 100644 --- a/web-app/static/diff.html +++ b/web-app/static/diff.html @@ -41,14 +41,15 @@ $(function() { }); $('#changes_table').DataTable( { - "columns": [ + "ajax": { "dataSrc" : "", "url" : "" }, + "columns": [ { "title" : "Ref Job", "data" : "ref_lavajob" }, { "title" : "Ref Status", "data" : "ref_status" }, { "title" : "Test Name", "data" : "test_name" }, { "title" : "Duration", "data" : "r\\.time" }, { "title" : "Compare To Status", "data" : "other_status" }, { "title" : "Compare To Job", "data" : "other_lavajob", "visible" : false } - ] + ] }); // get the list of available jobs @@ -66,10 +67,9 @@ $(function() { }); function update_table() { - var table = $('#changes_table').DataTable( { - "retrieve": true, - "ajax": { "dataSrc" : "", "url" : "/results/tempest/jobs/changes?ref=" + $("#ref-list").val() + "&other=" + $("#other-list").val() } - }); + var url = "/results/tempest/jobs/changes?ref=" + $("#ref-list").val() + "&other=" + $("#other-list").val(); + var table = $('#changes_table').DataTable(); + table.ajax.url(url).load(); } </script> |