mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	js: Normalize strings to double quotes.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							06691e1e45
						
					
				
				
					commit
					f3726db89a
				
			@@ -1,4 +1,4 @@
 | 
			
		||||
const render_feedback_container = require('../templates/feedback_container.hbs');
 | 
			
		||||
const render_feedback_container = require("../templates/feedback_container.hbs");
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
@@ -91,11 +91,11 @@ function set_up_handlers() {
 | 
			
		||||
        meta.hide_me_time = Math.max(meta.hide_me_time, new Date().getTime() + 2000);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    meta.$container.on('click', '.exit-me', () => {
 | 
			
		||||
    meta.$container.on("click", ".exit-me", () => {
 | 
			
		||||
        animate.fadeOut();
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    meta.$container.on('click', '.feedback_undo', () => {
 | 
			
		||||
    meta.$container.on("click", ".feedback_undo", () => {
 | 
			
		||||
        if (meta.undo) {
 | 
			
		||||
            meta.undo();
 | 
			
		||||
        }
 | 
			
		||||
@@ -113,11 +113,11 @@ exports.dismiss = function () {
 | 
			
		||||
 | 
			
		||||
exports.show = function (opts) {
 | 
			
		||||
    if (!opts.populate) {
 | 
			
		||||
        blueslip.error('programmer needs to supply populate callback.');
 | 
			
		||||
        blueslip.error("programmer needs to supply populate callback.");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    meta.$container = $('#feedback_container');
 | 
			
		||||
    meta.$container = $("#feedback_container");
 | 
			
		||||
 | 
			
		||||
    const html = render_feedback_container();
 | 
			
		||||
    meta.$container.html(html);
 | 
			
		||||
@@ -129,9 +129,9 @@ exports.show = function (opts) {
 | 
			
		||||
    // add a four second delay before closing up.
 | 
			
		||||
    meta.hide_me_time = new Date().getTime() + 4000;
 | 
			
		||||
 | 
			
		||||
    meta.$container.find('.feedback_title').text(opts.title_text);
 | 
			
		||||
    meta.$container.find('.feedback_undo').text(opts.undo_button_text);
 | 
			
		||||
    opts.populate(meta.$container.find('.feedback_content'));
 | 
			
		||||
    meta.$container.find(".feedback_title").text(opts.title_text);
 | 
			
		||||
    meta.$container.find(".feedback_undo").text(opts.undo_button_text);
 | 
			
		||||
    opts.populate(meta.$container.find(".feedback_content"));
 | 
			
		||||
 | 
			
		||||
    animate.fadeIn();
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user