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

login
register
mail settings
Submitter Alexandru DAMIAN
Date March 24, 2014, 6:37 p.m.
Message ID <16e6fc6e0492f4ebd5f18bd236478b6f9f778a1e.1395686148.git.alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/69107/
State New
Headers show

Comments

Alexandru DAMIAN - March 24, 2014, 6:37 p.m.
From: Amit Kumar Chaudhary <amit@floatingpondtech.com>

Merge the code into single ready function.

[YOCTO #4283]

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

Patch

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');
     }
+
 });