diff options
author | Clark Laughlin <clark.laughlin@linaro.org> | 2015-07-02 01:24:51 -0400 |
---|---|---|
committer | Clark Laughlin <clark.laughlin@linaro.org> | 2015-07-02 01:24:51 -0400 |
commit | 8a6f7f3cb64f500db9e2523a529e9f9314da82e4 (patch) | |
tree | 46a9c3b59187bc7f062b259aaaa85a88506d6c60 | |
parent | d49b45ef05d4510bd93c014653c16116ef9ffae5 (diff) |
web app: diff page
-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> |