From 2e180fe4363ca5c442f37c5ddc9776c708fac106 Mon Sep 17 00:00:00 2001 From: Michel Pastor Date: Mon, 26 Mar 2018 03:42:25 +0200 Subject: [PATCH] Fixes the issue of the OSD tab alarm tooltips not closing --- tabs/osd.js | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/tabs/osd.js b/tabs/osd.js index 26fb03b3..ddd5b094 100644 --- a/tabs/osd.js +++ b/tabs/osd.js @@ -1050,6 +1050,24 @@ TABS.osd.initialize = function (callback) { if (typeof alarm.step === 'function') { step = alarm.step(OSD.data) } + var $input = $(''); alarmInput.data('alarm', alarm); if (typeof alarm.to_display === 'function') { @@ -1066,26 +1084,10 @@ TABS.osd.initialize = function (callback) { OSD.data.alarms[alarm.name] = val; MSP.promise(MSPCodes.MSP_SET_OSD_CONFIG, OSD.msp.encodeOther()) .then(function () { + tooltip.close(); updateOsdView(); }); }); - var $input = $('