summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-02-19 21:08:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 12:24:01 -0700
commit0bad725381d0e09017a840d27bc1601edcd84a13 (patch)
tree60bf7f49d9671d9c81de07417fd267a56f3669da /bitbake/lib/toaster/toastergui/templates
parent4717749fd651e6983a31e3cefe3f210d2646ca87 (diff)
downloadast2050-yocto-poky-0bad725381d0e09017a840d27bc1601edcd84a13.zip
ast2050-yocto-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/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html52
-rw-r--r--bitbake/lib/toaster/toastergui/templates/configvars.html6
2 files changed, 3 insertions, 55 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 96f093f..16a1812 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) {
}
</script>
-<script>
- $(document).ready(function() {
- //show or hide selected columns on load
- $("input:checkbox").each(function(){
- var selectedType = $(this).val();
- if($(this).is(":checked")){
- $("."+selectedType).show();
- }
- else{
- $("."+selectedType).hide();
- }
- });
- //edit columns functionality (show / hide table columns)
- $("input:checkbox").change();
- $("input:checkbox").change(function(){
- var selectedType = $(this).val();
- if($(this).is(":checked")){
- $("."+selectedType).show();
- }
- else{
- $("."+selectedType).hide();
- }
- });
- //turn edit columns dropdown into a multi-select menu
- $('.dropdown-menu input, .dropdown-menu label').click(function(e) {
- e.stopPropagation();
- });
- //show help information inside modal dialogs
- $("#filter-variables i").tooltip({ html: true, delay: {show: 500} });
- //show applied filter tooltip
- $('.filtered').tooltip({container:'body', placement:'bottom', delay:{hide:1500}, html:true});
- //hide the applied filter tooltip when you click the filter button
- $('.btn-primary').on('click', function () {
- $('.tooltip').hide();
- });
-
- $('.full-variable, .full-variable-hide').hide();
- $('.full-variable-show').click(function(){
- $('.full-variable').slideDown(function(){
- $('.full-variable-hide').show();
- });
- $(this).hide();
- });
- $('.full-variable-hide').click(function(){
- $(this).hide();
- $('.full-variable').slideUp(function(){
- $('.full-variable-show').show();
- });
- });
- });
-</script>
-
</head>
<body style="height: 100%">
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html
index cd41cca..ecd5a0f 100644
--- a/bitbake/lib/toaster/toastergui/templates/configvars.html
+++ b/bitbake/lib/toaster/toastergui/templates/configvars.html
@@ -73,12 +73,12 @@
<h4>{{variable.variable_name}} value is:</h4>
<p>
<span>{{variable.variable_value|string_slice:':570'}}
- <span class="full-variable"> {{variable.variable_value|string_slice:'570:'}}
+ <span class="full"> {{variable.variable_value|string_slice:'570:'}}
</span>
- <a class="btn btn-mini full-variable-show">...</a>
+ <a class="btn btn-mini full-show">...</a>
</span>
</p>
- <a class="btn btn-mini full-variable-hide">Collapse variable value<i class="icon-caret-up"></i>
+ <a class="btn btn-mini full-hide">Collapse variable value<i class="icon-caret-up"></i>
</a>
{% endif %}
{% else %}
OpenPOWER on IntegriCloud