diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-02-28 05:55:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:01 -0700 |
commit | 4717749fd651e6983a31e3cefe3f210d2646ca87 (patch) | |
tree | 5ba0090617b97f5d49b5c78ee84563a0cab6b7f5 /bitbake/lib/toaster/toastergui/templates/base.html | |
parent | 31d4bf8484ee42690386c6b7a6bd6c7a2be54464 (diff) | |
download | poky-4717749fd651e6983a31e3cefe3f210d2646ca87.tar.gz |
bitbake: toaster: implement the configuration pagedreyna/configure-detail-view
Update the configuration page with the file list pop-up, implement the file and description filters.
[YOCTO #4259]
(Bitbake rev: 54a767809960b66b2fe2d3bc46aa9c7e040c4ae3)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/base.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 8d4771c10e..96f093f627 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html | |||
@@ -48,6 +48,59 @@ function reload_params(params) { | |||
48 | 48 | ||
49 | } | 49 | } |
50 | </script> | 50 | </script> |
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 | |||
51 | </head> | 104 | </head> |
52 | 105 | ||
53 | <body style="height: 100%"> | 106 | <body style="height: 100%"> |