summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-10-27 19:11:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:16 +0000
commita92fc3025b12bf7e794745c05c8567cc491bb073 (patch)
treea26935c6d76fa5eb3a51f5b5d4e9d0133ef7d866 /bitbake/lib/toaster/toastergui/static
parent4c828782255d1de8fac70757492a331d3d1abdbe (diff)
downloadpoky-a92fc3025b12bf7e794745c05c8567cc491bb073.tar.gz
bitbake: toaster: tablejs Add an event handler to manually trigger a data reload
Allow users of ToasterTable to manually trigger a refresh of the data. This can be useful if an action has happened in-page and the data is now invalid. Such as new data being added or removed from the model. (Bitbake rev: 6e42070d8abc80dacd8094c4f5019577453a9d49) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/table.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js
index 87cac600a5..a7e4fbad09 100644
--- a/bitbake/lib/toaster/toastergui/static/js/table.js
+++ b/bitbake/lib/toaster/toastergui/static/js/table.js
@@ -671,6 +671,13 @@ function tableInit(ctx){
671 }); 671 });
672 } 672 }
673 673
674 /* Allow pages to trigger reload event */
675 table.on('reload', function(e, newTableParams){
676 if (newTableParams)
677 loadData(newTableParams);
678 else
679 loadData(tableParams)
680 });
674 681
675 $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); 682 $(".get-help").tooltip({container:'body', html:true, delay:{show:300}});
676 683