Compare commits

..

2 Commits

Author SHA1 Message Date
aslan c27ad2c05b Merge pull request 'fixing green circle button' (#50) from RomanGolienko/Roman_applicant-site:prodV1 into main
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Successful in 2m13s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 35s Details
Reviewed-on: http://gitea.mkgtu.ru/aslan/applicant-site/pulls/50
2024-04-22 14:24:08 +03:00
ROMANGOLIENKO ca2c92f4fe fixing green circle button 2024-04-22 14:23:08 +03:00
1 changed files with 19 additions and 16 deletions

View File

@ -332,6 +332,23 @@
<!--Здесь пишем ЯВА СКРИПТ-->
<script>
$(".button_chng_instit").click(function () {
console.log('111')
let id=$(this).data('id');
let institut=$(this).data('institut');
if(institut=='mgtu') {
$("#content_budget_filial_" + id).hide();
$("#content_budget_mgtu_" + id).show();
$("#id_mgtu_" + id).show();
$("#id_filial_" + id).hide();
}else{
$("#content_budget_filial_"+id).show();
$("#content_budget_mgtu_"+id).hide();
$("#id_mgtu_"+id).hide();
$("#id_filial_"+id).show();
}
});
$(document).on("click", ".calc_green_circle_button", function () {
console.log('111')
let id=$(this).data('id');
let institut=$(this).data('institut');
if(institut=='mgtu') {
@ -398,6 +415,7 @@
</div>
<script>window.onload = function () {
$(".unclearall").click(function () {
$('input[type="checkbox"]').prop('checked', false);
@ -433,22 +451,7 @@
</script>
<script>
$(".calc_green_circle_button").click(function () {
console.log('111')
let name=$(this).data('id');
let institut=$(this).data('institut');
if(institut=='mgtu') {
$("#content_budget_filial_" + id).hide();
$("#content_budget_mgtu_" + id).show();
$("#id_mgtu_" + id).show();
$("#id_filial_" + id).hide();
}else{
$("#content_budget_filial_"+id).show();
$("#content_budget_mgtu_"+id).hide();
$("#id_mgtu_"+id).hide();
$("#id_filial_"+id).show();
}
});
</script>
</div>
</div>