Index: lams_build/lib/lams/lams.jar =================================================================== diff -u -r463716d6023591c9c35eeb5057a16c903289029e -r64e6623bc68b11257c7f5d71f3953154f80b6fde Binary files differ Index: lams_central/conf/language/lams/ApplicationResources.properties =================================================================== diff -u -r32d1d2ae1e17adb6839a95ecd2331a08168d11a8 -r64e6623bc68b11257c7f5d71f3953154f80b6fde --- lams_central/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 32d1d2ae1e17adb6839a95ecd2331a08168d11a8) +++ lams_central/conf/language/lams/ApplicationResources.properties (.../ApplicationResources.properties) (revision 64e6623bc68b11257c7f5d71f3953154f80b6fde) @@ -662,6 +662,12 @@ authoring.fla.liveedit.readonly.remove.parent.error =The activity can not be removed. Its parent activity is read-only. authoring.fla.liveedit.readonly.remove.child.error =The activity can not be removed. It has read-only child activities. authoring.fla.liveedit.readonly.remove.transition.error =The transition can not be removed. It is read-only. +authoring.fla.weights.menu =Weights +authoring.fla.weights.activity =Activity +authoring.fla.weights.output =Output +authoring.fla.weights.weight =Weight +authoring.fla.weights.sum =Sum +authoring.fla.weights.sum.error =Output weights do not sum up to 100%. Adjust them in Weights dialog. ckeditor.math.math =Math ckeditor.math.functions =Functions ckeditor.math.greek =Greek Index: lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java =================================================================== diff -u -r463716d6023591c9c35eeb5057a16c903289029e -r64e6623bc68b11257c7f5d71f3953154f80b6fde --- lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java (.../ObjectExtractor.java) (revision 463716d6023591c9c35eeb5057a16c903289029e) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java (.../ObjectExtractor.java) (revision 64e6623bc68b11257c7f5d71f3953154f80b6fde) @@ -781,7 +781,7 @@ String weight = (String) JsonUtil.opt(activityDetails, AuthoringJsonTags.TOOL_OUTPUT_WEIGHT); if (StringUtils.isNotBlank(weight)) { - evaluation.setWeight(Float.valueOf(weight)); + evaluation.setWeight(Integer.valueOf(weight)); } toolActivity.setEvaluation(evaluation); } else { Index: lams_central/web/authoring/authoring.jsp =================================================================== diff -u -r087c5569b40b1b84ca0d5fbfcacb2ea8551fc744 -r64e6623bc68b11257c7f5d71f3953154f80b6fde --- lams_central/web/authoring/authoring.jsp (.../authoring.jsp) (revision 087c5569b40b1b84ca0d5fbfcacb2ea8551fc744) +++ lams_central/web/authoring/authoring.jsp (.../authoring.jsp) (revision 64e6623bc68b11257c7f5d71f3953154f80b6fde) @@ -130,6 +130,8 @@ RESOURCE_MODIFY_ERROR : decoderDiv.html('').text(), FOLDER_MOVE_TO_CHILD_ERROR : decoderDiv.html('').text(), + + WEIGHTS_SUM_ERROR : decoderDiv.html('').text(), // HandlerLib @@ -376,7 +378,12 @@
  • - + + +