js/ka-ui.js
/**
     * Makes the required & disallowed code elements checkboxes for the given code element type
     * @param {string} The code element type (eg. 'IfStatement')
     * @param {Object} The JQuery dom element of the required code elements panel
     * @param {Object} The JQuery dom element of the disallowed code elements panel
     */
Makes the required & disallowed code elements checkboxes for the given code element type
@param {string} The code element type
@param {Object} The JQuery dom element of the required code elements panel
@param {Object} The JQuery dom element of the disallowed code elements panel
Makes the required & disallowed code elements checkboxes for the given code element type @param { string } The code element type @param { Object } The JQuery dom element of the required code elements panel @param { Object } The JQuery dom element of the disallowed code elements panel
function makeCheckboxes(elementType, requiredControlPanel, disallowedControlPanel) {
        var checkbox = $('<input type=\'checkbox\'/>');
        checkbox.on('change',
                    makeElementsCheckboxHandler(requiredElements,
                                                elementType,
                                                checkbox));
        requiredControlPanel.append(checkbox);
        requiredControlPanel.append($('<span class="element-checkbox-label">' + elementType + '</span><br />'));
        checkbox = $('<input type=\'checkbox\'/>');
        checkbox.on('change',
                    makeElementsCheckboxHandler(disallowedElements,
                                                elementType,
                                                checkbox));
        disallowedControlPanel.append(checkbox);
        disallowedControlPanel.append($('<span class="element-checkbox-label">' + elementType + '</span><br />'));
    }
function makeCheckboxes ( elementType , requiredControlPanel , disallowedControlPanel ) { var checkbox = $ ( '<input type=\'checkbox\'/>' ) ; checkbox . on ( 'change' , makeElementsCheckboxHandler ( requiredElements , elementType , checkbox ) ) ; requiredControlPanel . append ( checkbox ) ; requiredControlPanel . append ( $ ( '<span class="element-checkbox-label">' + elementType + '</span><br />' ) ) ; checkbox = $ ( '<input type=\'checkbox\'/>' ) ; checkbox . on ( 'change' , makeElementsCheckboxHandler ( disallowedElements , elementType , checkbox ) ) ; disallowedControlPanel . append ( checkbox ) ; disallowedControlPanel . append ( $ ( '<span class="element-checkbox-label">' + elementType + '</span><br />' ) ) ; }
Makes the required & disallowed code elements checkboxes for the given code element type
 @param {string} The code element type (eg.
Makes the required & disallowed code elements checkboxes for the given code element type @param { string } The code element type ( eg .