diff options
| author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-02-19 21:08:15 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:01 -0700 |
| commit | 0bad725381d0e09017a840d27bc1601edcd84a13 (patch) | |
| tree | 60bf7f49d9671d9c81de07417fd267a56f3669da /bitbake/lib/toaster/toastergui/static | |
| parent | 4717749fd651e6983a31e3cefe3f210d2646ca87 (diff) | |
| download | poky-0bad725381d0e09017a840d27bc1601edcd84a13.tar.gz | |
bitbake: toaster: Move long content toggle to main.js
I have move all javascript needed for toggling very long
values for bitbake variables to main.js. I have changed the
names of the classes involved to make them more generic,
since I hope we'll be able to reuse them in other parts
of the Toaster interface.
.full-variable is now .full
.full-variable-hide is now full-hide
.full-variable-show is now full-show
I have also removed all the inline scripting in base.html, since
it is no longer needed.
(Bitbake rev: 73828f047385ced160c7900cad24535aa8d325cd)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/main.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/main.js b/bitbake/lib/toaster/toastergui/static/js/main.js index ce4f578112..c80f716edb 100644 --- a/bitbake/lib/toaster/toastergui/static/js/main.js +++ b/bitbake/lib/toaster/toastergui/static/js/main.js | |||
| @@ -75,4 +75,19 @@ $(document).ready(function() { | |||
| 75 | }); | 75 | }); |
| 76 | }); | 76 | }); |
| 77 | 77 | ||
| 78 | // toggle for long content (variables, python stack trace, etc) | ||
| 79 | $('.full, .full-hide').hide(); | ||
| 80 | $('.full-show').click(function(){ | ||
| 81 | $('.full').slideDown(function(){ | ||
| 82 | $('.full-hide').show(); | ||
| 83 | }); | ||
| 84 | $(this).hide(); | ||
| 85 | }); | ||
| 86 | $('.full-hide').click(function(){ | ||
| 87 | $(this).hide(); | ||
| 88 | $('.full').slideUp(function(){ | ||
| 89 | $('.full-show').show(); | ||
| 90 | }); | ||
| 91 | }); | ||
| 92 | |||
| 78 | }); | 93 | }); |
