mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
js: Convert static/js/billing/billing.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
db7d0f0a30
commit
ce9d1d2b4d
@@ -139,7 +139,6 @@
|
|||||||
"alert_words_ui": false,
|
"alert_words_ui": false,
|
||||||
"attachments_ui": false,
|
"attachments_ui": false,
|
||||||
"avatar": false,
|
"avatar": false,
|
||||||
"billing": false,
|
|
||||||
"blueslip": false,
|
"blueslip": false,
|
||||||
"bot_data": false,
|
"bot_data": false,
|
||||||
"bridge": false,
|
"bridge": false,
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
"use strict";
|
export function initialize() {
|
||||||
|
|
||||||
exports.initialize = function () {
|
|
||||||
helpers.set_tab("billing");
|
helpers.set_tab("billing");
|
||||||
|
|
||||||
const stripe_key = $("#payment-method").data("key");
|
const stripe_key = $("#payment-method").data("key");
|
||||||
@@ -33,10 +31,8 @@ exports.initialize = function () {
|
|||||||
]);
|
]);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
window.billing = exports;
|
|
||||||
|
|
||||||
$(() => {
|
$(() => {
|
||||||
exports.initialize();
|
initialize();
|
||||||
});
|
});
|
||||||
|
|||||||
1
static/js/global.d.ts
vendored
1
static/js/global.d.ts
vendored
@@ -13,7 +13,6 @@ declare let admin: any;
|
|||||||
declare let alert_words_ui: any;
|
declare let alert_words_ui: any;
|
||||||
declare let attachments_ui: any;
|
declare let attachments_ui: any;
|
||||||
declare let avatar: any;
|
declare let avatar: any;
|
||||||
declare let billing: any;
|
|
||||||
declare let blueslip: any;
|
declare let blueslip: any;
|
||||||
declare let bot_data: any;
|
declare let bot_data: any;
|
||||||
declare let buddy_data: any;
|
declare let buddy_data: any;
|
||||||
|
|||||||
Reference in New Issue
Block a user