Skip to content
Snippets Groups Projects
Commit f89491c1 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

Merge branch 'feature/maintenance'

parents 5ce0c0db 14659748
Branches
Tags
No related merge requests found
......@@ -200,20 +200,6 @@ $(function() {
if ($(this).children("input").val() !== "")
rateResult += parseInt($(this).children("input").val());
});
/*
if (jThis.hasClass("additionalCell")) {
//console.log(jThis);
nextAdditionalCell = $("#col_"+(g_col + 1)+"_row_"+g_row);//.removeAttr("disabled");
console.log(nextAdditionalCell);
placeholder_max = (rateResult <= 60) ? (60 - rateResult) : (60 - oldRate);
nextAdditionalCell.find("input").attr("placeholder", "макс. "+(placeholder_max));
nextAdditionalCell.find("input").removeAttr("disabled");
//alert(col);
}*/
}
else if ($("#pageType").val() === "rating")
{
......@@ -253,16 +239,15 @@ $(function() {
var correctRate = (rateResult > 100) ? '100+' : rateResult;
jThis.siblings(".rateResultCell").text(correctRate);
// Открываем доступ с след. ячейки добора балла
// Открываем доступ к след. ячейке добора баллов
if (jThis.hasClass("additionalCell")) {
//console.log(jThis);
nextAdditionalCell = $("#col_"+(g_col + 1)+"_row_"+g_row);//.removeAttr("disabled");
console.log(nextAdditionalCell);
nextAdditionalCell = $("#col_" + (g_col + 1) + "_row_" + g_row);
placeholder_max = (rateResult <= 60) ? (60 - rateResult) : (60 - oldRate);
nextAdditionalCell.find("input").attr("placeholder", "макс. "+(placeholder_max));
nextAdditionalCell.find("input").removeAttr("disabled");
if (placeholder_max > 0) {
nextAdditionalCell.find("input").attr("placeholder", "макс. " + (placeholder_max));
nextAdditionalCell.find("input").removeAttr("disabled");
}
}
EventInspector_ShowMsg("Балл добавлен/изменен", "success");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment