mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	js: Convert static/js/billing/upgrade.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							ce9d1d2b4d
						
					
				
				
					commit
					e6fce07b0e
				
			| @@ -274,7 +274,6 @@ | ||||
|                 "unread": false, | ||||
|                 "unread_ops": false, | ||||
|                 "unread_ui": false, | ||||
|                 "upgrade": false, | ||||
|                 "upload": false, | ||||
|                 "upload_widget": false, | ||||
|                 "user_events": false, | ||||
|   | ||||
| @@ -1,6 +1,4 @@ | ||||
| "use strict"; | ||||
|  | ||||
| exports.initialize = () => { | ||||
| export const initialize = () => { | ||||
|     helpers.set_tab("upgrade"); | ||||
|  | ||||
|     const add_card_handler = StripeCheckout.configure({ | ||||
| @@ -82,8 +80,6 @@ exports.initialize = () => { | ||||
|     helpers.update_charged_amount(prices, $("input[type=radio][name=schedule]:checked").val()); | ||||
| }; | ||||
|  | ||||
| window.upgrade = exports; | ||||
|  | ||||
| $(() => { | ||||
|     exports.initialize(); | ||||
|     initialize(); | ||||
| }); | ||||
|   | ||||
							
								
								
									
										1
									
								
								static/js/global.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								static/js/global.d.ts
									
									
									
									
										vendored
									
									
								
							| @@ -140,7 +140,6 @@ declare let ui_util: any; | ||||
| declare let unread: any; | ||||
| declare let unread_ops: any; | ||||
| declare let unread_ui: any; | ||||
| declare let upgrade: any; | ||||
| declare let upload: any; | ||||
| declare let upload_widget: any; | ||||
| declare let user_events: any; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user