mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 03:53:50 +00:00 
			
		
		
		
	With webpack, variables declared in each file are already file-local (Global variables need to be explicitly exported), so these IIFEs are no longer needed. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
		
			
				
	
	
		
			17 lines
		
	
	
		
			416 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			416 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| function set_tutorial_status(status, callback) {
 | |
|     return channel.post({
 | |
|         url: '/json/users/me/tutorial_status',
 | |
|         data: {status: JSON.stringify(status)},
 | |
|         success: callback,
 | |
|     });
 | |
| }
 | |
| 
 | |
| exports.initialize = function () {
 | |
|     if (page_params.needs_tutorial) {
 | |
|         set_tutorial_status("started");
 | |
|         narrow.by('is', 'private', {trigger: 'sidebar'});
 | |
|     }
 | |
| };
 | |
| 
 | |
| window.tutorial = exports;
 |