From 9d38fda72b55b2c33c2605d551f8eb9575e03926 Mon Sep 17 00:00:00 2001 From: Arpad Csanyi Date: Tue, 10 May 2016 00:22:14 +0200 Subject: [PATCH] Toggle the help text based on the selected option. Fixes #43 --- script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script.js b/script.js index fa622989..c9dd1a8b 100644 --- a/script.js +++ b/script.js @@ -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) {