Index: lams_tool_forum/web/jsps/authoring/advance.jsp =================================================================== diff -u -r48b47fb432424aa88c4a6f5634f7388586eb6a0c -r302dc82d7b6e85c18d3bd22e68ae4554dcfcecd8 --- lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 48b47fb432424aa88c4a6f5634f7388586eb6a0c) +++ lams_tool_forum/web/jsps/authoring/advance.jsp (.../advance.jsp) (revision 302dc82d7b6e85c18d3bd22e68ae4554dcfcecd8) @@ -2,6 +2,8 @@ + +
@@ -23,13 +25,13 @@ - +
- +
@@ -41,39 +43,12 @@
- - - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - + +
- - - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - +
@@ -97,39 +72,12 @@
- - - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - + +
- - - - - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - +
@@ -265,18 +213,20 @@ } } checkRating(); + + function validateRatings(isMinimunRateDropdownUsed) { - var minRateDropDown = document.getElementById("minimumRate"); - var minRatings = parseInt(minRateDropDown.options[minRateDropDown.selectedIndex].value); - var maxRateDropDown = document.getElementById("maximumRate"); - var maxRatings = parseInt(maxRateDropDown.options[maxRateDropDown.selectedIndex].value); - + + var minRateInput = document.getElementById("minimumRate"); + var minRatings = parseInt(minRateInput.value); + var maxRateInput = document.getElementById("maximumRate"); + var maxRatings = parseInt(maxRateInput.value); if ((minRatings > maxRatings) && !(maxRatings == 0)) { if (isMinimunRateDropdownUsed) { - minRateDropDown.selectedIndex = maxRateDropDown.selectedIndex; + minRateInput.value = maxRatings; } else { - maxRateDropDown.selectedIndex = minRateDropDown.selectedIndex; + maxRateInput.value = minRatings; } alert(''); Index: lams_tool_forum/web/jsps/authoring/authoring.jsp =================================================================== diff -u -r26a0240d04a160036cc15d1adca267cd1e9c42e5 -r302dc82d7b6e85c18d3bd22e68ae4554dcfcecd8 --- lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 26a0240d04a160036cc15d1adca267cd1e9c42e5) +++ lams_tool_forum/web/jsps/authoring/authoring.jsp (.../authoring.jsp) (revision 302dc82d7b6e85c18d3bd22e68ae4554dcfcecd8) @@ -3,10 +3,10 @@