[bitbake-devel] [PATCH 13/18] toaster: combine ready functions

Alex DAMIAN alexandru.damian at intel.com
Mon Mar 24 18:37:23 UTC 2014


From: Amit Kumar Chaudhary <amit at floatingpondtech.com>

Merge the code into single ready function.

[YOCTO #4283]

Signed-off-by: Amit Kumar Chaudhary <amit at floatingpondtech.com>
---
 lib/toaster/toastergui/static/js/main.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/toaster/toastergui/static/js/main.js b/lib/toaster/toastergui/static/js/main.js
index 07aba3d..7f897d2 100644
--- a/lib/toaster/toastergui/static/js/main.js
+++ b/lib/toaster/toastergui/static/js/main.js
@@ -90,9 +90,6 @@ $(document).ready(function() {
         });
     });
 
-});
-
-$(document).ready(function() {
     //toggle the errors and warnings sections
     $('.show-errors').click(function() {
         $('#collapse-errors').addClass('in');
@@ -110,4 +107,5 @@ $(document).ready(function() {
     if (location.href.search('#warnings') > -1) {
         $('#collapse-warnings').addClass('in');
     }
+
 });
-- 
1.8.3.2




More information about the bitbake-devel mailing list