From d9341d1a774ccea25e64583f9adc61b163fb1f95 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 3 Jun 2015 12:36:30 +0100 Subject: bitbake: toaster: toastertables REST refactoring This patch refactors the ToasterTables to bring them in line with REST principles - - all table pages now support the "format=json" GET parameter that returns the data in JSON format - the tables themselves This cleans up the URL namespace by aleviating the need to have two URLS for each table (one for the template and one for the data loading), and fixes minor things in the ToasterTable implementation. (Bitbake rev: 1778dac9fd39dae75c55bf2cf836cdd488dbc265) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/toastertable.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/toastergui/templates/toastertable.html') diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable.html b/bitbake/lib/toaster/toastergui/templates/toastertable.html index 5c79ab4ae1..c7c7a84bf7 100644 --- a/bitbake/lib/toaster/toastergui/templates/toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/toastertable.html @@ -10,7 +10,7 @@ var ctx = { tableName : "{{table_name}}", - url : "{{ xhr_table_url }}", + url : "{{ xhr_table_url }}?format=json", title : "{{title}}", projectLayers : {{projectlayers|json}}, }; -- cgit v1.2.3-54-g00ecf