From 4eee61ab1b5a6a64edfaaa24efcc2ddb0f6808e5 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Sun, 10 Mar 2019 01:25:59 -0500 Subject: [PATCH] Hide labels if light is disabled. Hide navigation element if light is disabled. --- app/lib/ui/light.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/ui/light.js b/app/lib/ui/light.js index 017a3b9..b01db60 100644 --- a/app/lib/ui/light.js +++ b/app/lib/ui/light.js @@ -90,9 +90,13 @@ light.init = function () { }; light.disable = function () { light.disabled = true; + $('#tb_toolbar_item_light').hide(); + $('#seq_labels .spacer').eq(1).hide(); } light.enable = function () { light.disabled = false; + $('#tb_toolbar_item_light').show(); + $('#seq_labels .spacer').eq(1).show(); }; light.colorPickers = function () { 'use strict';