From 91fa256e30b45898a17d817624a0c77a099c77f2 Mon Sep 17 00:00:00 2001
From: CupCakeArmy <nicco.borgioli@gmail.com>
Date: Fri, 22 Apr 2016 12:27:37 +0200
Subject: [PATCH] Reset Custom menu when new tool is loaded

---
 admin/lib/cust/main.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/admin/lib/cust/main.js b/admin/lib/cust/main.js
index 47400de..8a98bf1 100644
--- a/admin/lib/cust/main.js
+++ b/admin/lib/cust/main.js
@@ -35,6 +35,8 @@ var tools = {
         window.location.hash = tools.curTool;
         $('#wheel-logo').css('transform', 'rotate(360deg)');
         $('#main-content').fadeOut(100, function() {
+            // Reset Custom menu
+            tools.ui.menu();
             $.ajax({
                 url: 'tools/' + tools.curTool + '.tool',
                 dataType: 'html',
-- 
GitLab