mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
Keep FOSSBILLING Global (#1024)
* Keep FOSSBILLING Global * Update fossbilling.js Remove boxbilling constant
This commit is contained in:
1 parent
ca0c4ac723
commit
e487cc4ba9
1 file changed
+1
-12
@@ -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 =====//
|
||||
|
||||
Reference in new issue
Block a user