Toggle component group visibility. Closes #572

This commit is contained in:
James Brooks
2015-05-18 21:45:14 +01:00
parent 31336478fe
commit f277d8b2bc
8 changed files with 58 additions and 54 deletions
+8
View File
@@ -203,6 +203,14 @@ $(function() {
$('input[name=remove_banner]').val('1');
});
$('.group-name').on('click', function () {
var $this = $(this);
$this.find('.group-toggle').toggleClass('ion-ios-minus-outline').toggleClass('ion-ios-plus-outline');
$this.next('.group-items').toggleClass('hide');
});
// Setup wizard
$('.wizard-next').on('click', function () {
var $form = $('#setup-form'),
+7 -8
View File
@@ -268,14 +268,13 @@ body.status-page {
top: 0.6em;
bottom: 0.6em;
}
}
&.sub-component {
&:before {
@extend .ion;
content: $ionicon-var-ios-plus-outline;
margin-right: 10px;
}
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
&.break {