From e487cc4ba97d169dd7b82f4eaecef9af462f492c Mon Sep 17 00:00:00 2001 From: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:17:31 +0200 Subject: [PATCH] Keep FOSSBILLING Global (#1024) * Keep FOSSBILLING Global * Update fossbilling.js Remove boxbilling constant --- src/themes/admin_default/assets/js/fossbilling.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/themes/admin_default/assets/js/fossbilling.js b/src/themes/admin_default/assets/js/fossbilling.js index c17a6f8df..d8dcca213 100644 --- a/src/themes/admin_default/assets/js/fossbilling.js +++ b/src/themes/admin_default/assets/js/fossbilling.js @@ -312,7 +312,7 @@ $.fn.simpleTabs = function () { };//end function -const FOSSBilling = { +globalThis.FOSSBilling = { message: (message, type = 'info') => { let color; switch (type) { @@ -360,17 +360,6 @@ const FOSSBilling = { } }; -/** - * Fallback for modules that still use the old "boxbilling" object. It will display deprecation warnings in the console and will be removed entirely in the future. - * @deprecated Will be removed in a future release. Use FOSSBilling.message() instead. - */ -const boxbilling = { - message: (message, type = 'info') => { - console.warn('The "boxbilling" object is deprecated and will be removed in a future release. Use FOSSBilling.message() instead.'); - FOSSBilling.message(message, type); - } -} - $(function () { //===== Global ajax methods =====//