diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/main.js | 20 |
1 files changed, 20 insertions, 0 deletions
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() { | |||
| 91 | }); | 91 | }); |
| 92 | 92 | ||
| 93 | }); | 93 | }); |
| 94 | |||
| 95 | $(document).ready(function() { | ||
| 96 | //toggle the errors and warnings sections | ||
| 97 | $('.show-errors').click(function() { | ||
| 98 | $('#collapse-errors').addClass('in'); | ||
| 99 | }); | ||
| 100 | $('.toggle-errors').click(function() { | ||
| 101 | $('#collapse-errors').toggleClass('in'); | ||
| 102 | }); | ||
| 103 | $('.show-warnings').click(function() { | ||
| 104 | $('#collapse-warnings').addClass('in'); | ||
| 105 | }); | ||
| 106 | $('.toggle-warnings').click(function() { | ||
| 107 | $('#collapse-warnings').toggleClass('in'); | ||
| 108 | }); | ||
| 109 | //show warnings section when requested from the previous page | ||
| 110 | if (location.href.search('#warnings') > -1) { | ||
| 111 | $('#collapse-warnings').addClass('in'); | ||
| 112 | } | ||
| 113 | }); | ||
