diff options
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/main.js | 15 | ||||
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 52 | ||||
| -rw-r--r-- | bitbake/lib/toaster/toastergui/templates/configvars.html | 6 |
3 files changed, 18 insertions, 55 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 | }); |
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 96f093f627..16a1812789 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
| @@ -49,58 +49,6 @@ function reload_params(params) { | |||
| 49 | } | 49 | } |
| 50 | </script> | 50 | </script> |
| 51 | 51 | ||
| 52 | <script> | ||
| 53 | $(document).ready(function() { | ||
| 54 | //show or hide selected columns on load | ||
| 55 | $("input:checkbox").each(function(){ | ||
| 56 | var selectedType = $(this).val(); | ||
| 57 | if($(this).is(":checked")){ | ||
| 58 | $("."+selectedType).show(); | ||
| 59 | } | ||
| 60 | else{ | ||
| 61 | $("."+selectedType).hide(); | ||
| 62 | } | ||
| 63 | }); | ||
| 64 | //edit columns functionality (show / hide table columns) | ||
| 65 | $("input:checkbox").change(); | ||
| 66 | $("input:checkbox").change(function(){ | ||
| 67 | var selectedType = $(this).val(); | ||
| 68 | if($(this).is(":checked")){ | ||
| 69 | $("."+selectedType).show(); | ||
| 70 | } | ||
| 71 | else{ | ||
| 72 | $("."+selectedType).hide(); | ||
| 73 | } | ||
| 74 | }); | ||
| 75 | //turn edit columns dropdown into a multi-select menu | ||
| 76 | $('.dropdown-menu input, .dropdown-menu label').click(function(e) { | ||
| 77 | e.stopPropagation(); | ||
| 78 | }); | ||
| 79 | //show help information inside modal dialogs | ||
| 80 | $("#filter-variables i").tooltip({ html: true, delay: {show: 500} }); | ||
| 81 | //show applied filter tooltip | ||
| 82 | $('.filtered').tooltip({container:'body', placement:'bottom', delay:{hide:1500}, html:true}); | ||
| 83 | //hide the applied filter tooltip when you click the filter button | ||
| 84 | $('.btn-primary').on('click', function () { | ||
| 85 | $('.tooltip').hide(); | ||
| 86 | }); | ||
| 87 | |||
| 88 | $('.full-variable, .full-variable-hide').hide(); | ||
| 89 | $('.full-variable-show').click(function(){ | ||
| 90 | $('.full-variable').slideDown(function(){ | ||
| 91 | $('.full-variable-hide').show(); | ||
| 92 | }); | ||
| 93 | $(this).hide(); | ||
| 94 | }); | ||
| 95 | $('.full-variable-hide').click(function(){ | ||
| 96 | $(this).hide(); | ||
| 97 | $('.full-variable').slideUp(function(){ | ||
| 98 | $('.full-variable-show').show(); | ||
| 99 | }); | ||
| 100 | }); | ||
| 101 | }); | ||
| 102 | </script> | ||
| 103 | |||
| 104 | </head> | 52 | </head> |
| 105 | 53 | ||
| 106 | <body style="height: 100%"> | 54 | <body style="height: 100%"> |
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html index cd41cca7e5..ecd5a0f3d8 100644 --- a/bitbake/lib/toaster/toastergui/templates/configvars.html +++ b/bitbake/lib/toaster/toastergui/templates/configvars.html | |||
| @@ -73,12 +73,12 @@ | |||
| 73 | <h4>{{variable.variable_name}} value is:</h4> | 73 | <h4>{{variable.variable_name}} value is:</h4> |
| 74 | <p> | 74 | <p> |
| 75 | <span>{{variable.variable_value|string_slice:':570'}} | 75 | <span>{{variable.variable_value|string_slice:':570'}} |
| 76 | <span class="full-variable"> {{variable.variable_value|string_slice:'570:'}} | 76 | <span class="full"> {{variable.variable_value|string_slice:'570:'}} |
| 77 | </span> | 77 | </span> |
| 78 | <a class="btn btn-mini full-variable-show">...</a> | 78 | <a class="btn btn-mini full-show">...</a> |
| 79 | </span> | 79 | </span> |
| 80 | </p> | 80 | </p> |
| 81 | <a class="btn btn-mini full-variable-hide">Collapse variable value<i class="icon-caret-up"></i> | 81 | <a class="btn btn-mini full-hide">Collapse variable value<i class="icon-caret-up"></i> |
| 82 | </a> | 82 | </a> |
| 83 | {% endif %} | 83 | {% endif %} |
| 84 | {% else %} | 84 | {% else %} |
