(function(global) {
    'use strict';

    $(document).ready(function() {
        setupQuestionWindows();
    });

    global.setupQuestionWindows = function setupQuestionWindows() {
        $('a.js-question-dialog').on('click', function(evt) {
            evt.preventDefault();
            ajaxDialog({
                url: build_url($(this).data('href')),
                title: $(this).data('title'),
                onClose: function(data) {
                    if (data) {
                        location.reload();
                    }
                }
            });
        });
    };
})(window);

(function(global) {
    'use strict';

    $(document).ready(function() {
        setupEvaluationScheduleWindows();
        setupQuestionWindows();
    });

    global.setupEvaluationScheduleWindows = function setupEvaluationScheduleWindows() {
        $('a.js-evaluation-schedule-dialog').on('click', function(evt) {
            evt.preventDefault();
            ajaxDialog({
                url: build_url($(this).data('href')),
                title: $(this).data('title'),
                onClose: function(data) {
                    if (data) {
                        location.reload();
                    }
                }
            });
        });
    };

    global.setupQuestionWindows = function setupQuestionWindows() {
        $('a.js-question-dialog').on('click', function(evt) {
            evt.preventDefault();
            ajaxDialog({
                url: build_url($(this).data('href')),
                title: $(this).data('title'),
                onClose: function(data) {
                    if (data) {
                        location.reload();
                    }
                }
            });
        });
    };
})(window);

Add js to open evaluation schedule dialog
Add js to open evaluation schedule dialog
