Toggle the help text based on the selected option. Fixes #43

This commit is contained in:
Arpad Csanyi
2016-05-10 00:22:14 +02:00
parent 911e51b6d1
commit 9d38fda72b

View File

@@ -378,6 +378,10 @@ function initSelect2items(noSearch) {
$('img', '.layout-preview').attr('src', 'images/' + image);
});
$('.layer-toggle').on('select2:select', function(e) {
$('.layer-help').toggle();
});
$('.layout-switcher').on('select2:open', function(e) {
$('.layout-preview').css('opacity', '0.1');
}).on('select2:close', function(e) {