diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-30 15:55:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-30 15:55:13 -0500 |
commit | 288df6a7bf8b933e2dc499e38f4915fcf974c14b (patch) | |
tree | 77bba994f260c064d3ee7f76c427ddfaa4f91710 /js/dashboard-common.js | |
parent | a2c9deaa145b780722e93b3899600f287c8094a4 (diff) | |
download | ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.lz ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.tar.xz ematrix-288df6a7bf8b933e2dc499e38f4915fcf974c14b.zip |
backport
- Flush caches on upgrade
- Properly handle FrameModule's unloading
- Use the new module and remove the old implementation
Diffstat (limited to 'js/dashboard-common.js')
-rw-r--r-- | js/dashboard-common.js | 16 |
1 files changed, 4 insertions, 12 deletions
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'); }); - - - /******************************************************************************/ - }); |