95
95
target="help">Read about installing</a>)
98
<div id="ppa-install-slide-trigger">
99
<div class="widget-header">
100
Technical details about this PPA
98
<div class="widget-header">
99
Technical details about this PPA
104
102
<div class="widget-body">
148
146
>Celso Providelo</a>.</p>
150
148
<script type="text/javascript">
151
LPS.use('node', 'event', 'lazr.effects', function(Y) {
153
// Hide the widget body contents.
154
Y.one('#ppa-install .widget-body').addClass('lazr-closed');
156
// Ensure that the widget header uses the correct sprite icon
157
// and gets the styling for javascript actions applied.
158
var widget_header = Y.one('#ppa-install .widget-header');
159
widget_header.addClass('sprite');
160
widget_header.addClass('treeCollapsed');
161
widget_header.addClass('js-action');
164
function toggle_body_visibility(e) {
166
slide = Y.lazr.effects.slide_out('#ppa-install .widget-body');
167
widget_header.replaceClass('treeCollapsed', 'treeExpanded');
169
slide.set('reverse', !slide.get('reverse'));
170
widget_header.toggleClass('treeExpanded');
171
widget_header.toggleClass('treeCollapsed');
176
Y.on('click', toggle_body_visibility,
177
'#ppa-install-slide-trigger');
149
LPS.use('lp.app.widgets.expander', function(Y) {
150
var widget_header = Y.one('#ppa-install .widget-header');
151
var content = Y.one('.widget-body');
152
var expander = new Y.lp.app.widgets.expander.Expander(
153
widget_header, content);
154
expander.setUp(true);