Also updated these references

This commit is contained in:
evrifaessa committed 2022-11-19 19:30:17 +03:00
1 parent 3b98ed80b4
commit 8fb5041ac0
2 files changed
+10 -10

No files matched your search

@@ -6,11 +6,11 @@ var bb = {
data: params,
dataType: 'json',
error: function (jqXHR, textStatus, e) {
boxbilling.message(e, 'error');
FOSSBilling.message(e, 'error');
},
success: function (data) {
if (data.error) {
boxbilling.message(data.error.message, 'error');
FOSSBilling.message(data.error.message, 'error');
} else {
if (typeof jsonp === 'function') {
return jsonp(data.result);
@@ -28,11 +28,11 @@ var bb = {
data: params,
dataType: 'json',
error: function (jqXHR, textStatus, e) {
boxbilling.message(e, 'error');
FOSSBilling.message(e, 'error');
},
success: function (data) {
if (data.error) {
boxbilling.message(data.error.message, 'error');
FOSSBilling.message(data.error.message, 'error');
} else {
if (typeof jsonp === 'function') {
return jsonp(data.result);
@@ -53,10 +53,10 @@ var bb = {
jAlert(txt, 'Error code: ' + code);
},
/**
* @deprecated Will be removed after testing. Use boxbilling.message()
* @deprecated Will be removed after testing. Use FOSSBilling.message()
*/
msg: function (txt, type) {
boxbilling.message(txt, type);
FOSSBilling.message(txt, type);
},
redirect: function (url) {
if (url === undefined) {
@@ -107,13 +107,13 @@ var bb = {
}
if (obj.attr('data-api-msg') !== undefined) {
boxbilling.message(obj.attr('data-api-msg'), 'success');
FOSSBilling.message(obj.attr('data-api-msg'), 'success');
return;
}
if (result) {
boxbilling.message('Form updated', 'success');
FOSSBilling.message('Form updated', 'success');
return;
}
@@ -370,4 +370,4 @@ const FOSSBilling = {
toast.show();
}
};
};
@@ -172,7 +172,7 @@
<td>{{ mf.status_name(tx.type|default('-')) }}</td>
<td>
{% if tx.error %}
<a href="#" onclick="bb.msg('{{ tx.error }}', '{{ tx.error_code }}'); return false;">{{ tx.error_code }}</a>
<a href="#" onclick="FOSSBilling.message('{{ tx.error }}', '{{ tx.error_code }}'); return false;">{{ tx.error_code }}</a>
{% else %}
{{ mf.status_name(tx.status) }}
{% endif %}