From: Michael Wood <[email protected]> Make sure the default event is consumed to stop the event being further processed and breaking out of the function to import layer.
Signed-off-by: Michael Wood <[email protected]> --- bitbake/lib/toaster/toastergui/static/js/importlayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index 5a59799..e193557 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js @@ -105,7 +105,8 @@ function importLayerPageInit (ctx) { }, null); }); - importAndAddBtn.click(function(){ + importAndAddBtn.click(function(e){ + e.preventDefault(); /* This is a list of the names from layerDeps for the layer deps * modal dialog body */ -- 1.9.1 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
