From 288df6a7bf8b933e2dc499e38f4915fcf974c14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 30 Dec 2019 15:55:13 -0500 Subject: backport - Flush caches on upgrade - Properly handle FrameModule's unloading - Use the new module and remove the old implementation --- js/dashboard-common.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'js/dashboard-common.js') diff --git a/js/dashboard-common.js b/js/dashboard-common.js index 68ba7d5..9eba87c 100644 --- a/js/dashboard-common.js +++ b/js/dashboard-common.js @@ -23,22 +23,14 @@ 'use strict'; -/******************************************************************************/ - -uDom.onLoad(function() { - - /******************************************************************************/ - +uDom.onLoad(function () { // Open links in the proper window uDom('a').attr('target', '_blank'); uDom('a[href*="dashboard.html"]').attr('target', '_parent'); - uDom('.whatisthis').on('click', function() { - uDom(this).parent() + uDom('.whatisthis').on('click', function () { + uDom(this) + .parent() .descendants('.whatisthis-expandable') .toggleClass('whatisthis-expanded'); }); - - - /******************************************************************************/ - }); -- cgit v1.2.3