From d3d3a2c6ba71767e49a5b62fe74bf3b47688b911 Mon Sep 17 00:00:00 2001 From: Amit Kumar Chaudhary Date: Wed, 12 Mar 2014 18:47:42 +0000 Subject: bitbake: toaster: add errors and warnings listing Add the errors and warnings listing to the build dashboard page. (Bitbake rev: 2004c0fd1dd049d26279ee10a18e69e6852247fa) Signed-off-by: Amit Kumar Chaudhary Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/main.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/static') diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index c80f716edb..07aba3d86b 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js @@ -91,3 +91,23 @@ $(document).ready(function() { }); }); + +$(document).ready(function() { + //toggle the errors and warnings sections + $('.show-errors').click(function() { + $('#collapse-errors').addClass('in'); + }); + $('.toggle-errors').click(function() { + $('#collapse-errors').toggleClass('in'); + }); + $('.show-warnings').click(function() { + $('#collapse-warnings').addClass('in'); + }); + $('.toggle-warnings').click(function() { + $('#collapse-warnings').toggleClass('in'); + }); + //show warnings section when requested from the previous page + if (location.href.search('#warnings') > -1) { + $('#collapse-warnings').addClass('in'); + } +}); -- cgit v1.2.3-54-g00ecf