mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	js: Automatically convert var to let and const in most files.
This commit was originally automatically generated using `tools/lint --only=eslint --fix`. It was then modified by tabbott to contain only changes to a set of files that are unlikely to result in significant merge conflicts with any open pull request, excluding about 20 files. His plan is to merge the remaining changes with more precise care, potentially involving merging parts of conflicting pull requests before running the `eslint --fix` operation. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							f7245e9ec6
						
					
				
				
					commit
					28f3dfa284
				
			@@ -3,7 +3,7 @@
 | 
			
		||||
exports.toggler = undefined;
 | 
			
		||||
 | 
			
		||||
exports.set_up_toggler = function () {
 | 
			
		||||
    var opts = {
 | 
			
		||||
    const opts = {
 | 
			
		||||
        selected: 0,
 | 
			
		||||
        child_wants_focus: true,
 | 
			
		||||
        values: [
 | 
			
		||||
@@ -19,12 +19,12 @@ exports.set_up_toggler = function () {
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    exports.toggler = components.toggle(opts);
 | 
			
		||||
    var elem = exports.toggler.get();
 | 
			
		||||
    const elem = exports.toggler.get();
 | 
			
		||||
    elem.addClass('large allow-overflow');
 | 
			
		||||
 | 
			
		||||
    var modals = _.map(opts.values, function (item) {
 | 
			
		||||
        var key = item.key; // e.g. message-formatting
 | 
			
		||||
        var modal = $('#' + key).find('.modal-body');
 | 
			
		||||
    const modals = _.map(opts.values, function (item) {
 | 
			
		||||
        const key = item.key; // e.g. message-formatting
 | 
			
		||||
        const modal = $('#' + key).find('.modal-body');
 | 
			
		||||
        return modal;
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +49,7 @@ exports.show = function (target) {
 | 
			
		||||
        exports.set_up_toggler();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var overlay = $(".informational-overlays");
 | 
			
		||||
    const overlay = $(".informational-overlays");
 | 
			
		||||
 | 
			
		||||
    if (!overlay.hasClass("show")) {
 | 
			
		||||
        overlays.open_overlay({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user