|
@@ -1259,6 +1259,11 @@ function renderParameter (function_obj, parameter_obj, function_container) {
|
|
|
|
|
|
ret += '<div class="ui label function_name_parameter pink"><i class="ui icon ellipsis vertical inverted"></i>';
|
|
ret += '<div class="ui label function_name_parameter pink"><i class="ui icon ellipsis vertical inverted"></i>';
|
|
|
|
|
|
|
|
+ if (parameter_obj.reference)
|
|
|
|
+ ret += '<input type="checkbox" checked>';
|
|
|
|
+ else
|
|
|
|
+ ret += '<input type="checkbox">';
|
|
|
|
+
|
|
ret += '<div class="ui dropdown parameter_type">';
|
|
ret += '<div class="ui dropdown parameter_type">';
|
|
|
|
|
|
if (parameter_obj.dimensions > 0) {
|
|
if (parameter_obj.dimensions > 0) {
|
|
@@ -1283,7 +1288,6 @@ function renderParameter (function_obj, parameter_obj, function_container) {
|
|
ret += '<div class="item ' + (parameter_obj.type == tm.toLowerCase() && parameter_obj.dimensions == 0 ? ' selected ' : '') + '" data-type="'+tm+'" >'+LocalizedStrings.getUI(`type_${tm.toLowerCase()}`)+'</div>';
|
|
ret += '<div class="item ' + (parameter_obj.type == tm.toLowerCase() && parameter_obj.dimensions == 0 ? ' selected ' : '') + '" data-type="'+tm+'" >'+LocalizedStrings.getUI(`type_${tm.toLowerCase()}`)+'</div>';
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
ret += '<div class="item ' + (parameter_obj.dimensions == 1 ? ' selected ' : '') + '">'
|
|
ret += '<div class="item ' + (parameter_obj.dimensions == 1 ? ' selected ' : '') + '">'
|
|
+ '<i class="dropdown icon"></i>' + LocalizedStrings.getUI('vector')
|
|
+ '<i class="dropdown icon"></i>' + LocalizedStrings.getUI('vector')
|
|
+ '<div class="menu">';
|
|
+ '<div class="menu">';
|
|
@@ -1341,6 +1345,10 @@ function renderParameter (function_obj, parameter_obj, function_container) {
|
|
enableNameParameterUpdate(parameter_obj, ret, function_obj);
|
|
enableNameParameterUpdate(parameter_obj, ret, function_obj);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ ret.find('input:checkbox').change(function() {
|
|
|
|
+ parameter_obj.reference = this.checked
|
|
|
|
+ });
|
|
|
|
+
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1645,10 +1653,8 @@ function uploadFile (evt) {
|
|
|
|
|
|
previousContent = txt;
|
|
previousContent = txt;
|
|
prepareActivityToStudent(txt);
|
|
prepareActivityToStudent(txt);
|
|
-
|
|
|
|
- // window.algorithm_in_ilm = txt;
|
|
|
|
- // window.program_obj = JSON.parse(txt);
|
|
|
|
window.renderAlgorithm();
|
|
window.renderAlgorithm();
|
|
|
|
+ $('.assessment_button').addClass('disabled');
|
|
}
|
|
}
|
|
catch (e) {
|
|
catch (e) {
|
|
showInvalidFile();
|
|
showInvalidFile();
|