summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/table.js
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-03 12:36:30 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-12 00:01:47 +0100
commitd9341d1a774ccea25e64583f9adc61b163fb1f95 (patch)
treea2989f7885d4b1a3acce138cfdd93b864fd81832 /bitbake/lib/toaster/toastergui/static/js/table.js
parent751e9182ac7f37506c3d85cade00ef6f3986eb7a (diff)
downloadpoky-d9341d1a774ccea25e64583f9adc61b163fb1f95.tar.gz
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 <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/table.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/table.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js
index 2e35e3871c..7588a4ab9a 100644
--- a/bitbake/lib/toaster/toastergui/static/js/table.js
+++ b/bitbake/lib/toaster/toastergui/static/js/table.js
@@ -383,12 +383,13 @@ function tableInit(ctx){
383 */ 383 */
384 var params = { 384 var params = {
385 'name' : filterName, 385 'name' : filterName,
386 'search': tableParams.search 386 'search': tableParams.search,
387 'cmd': 'filterinfo',
387 }; 388 };
388 389
389 $.ajax({ 390 $.ajax({
390 type: "GET", 391 type: "GET",
391 url: ctx.url + 'filterinfo', 392 url: ctx.url,
392 data: params, 393 data: params,
393 headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, 394 headers: { 'X-CSRFToken' : $.cookie('csrftoken')},
394 success: function (filterData) { 395 success: function (filterData) {