a little change for health editing modal.

This commit is contained in:
Michael Wain 2024-11-30 02:22:34 +03:00
parent bc2b8322a4
commit 284dec2803
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package com.alterdekim.javabot.repository;
import com.alterdekim.javabot.entities.GameStats;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
public interface GameStatsRepository extends JpaRepository<GameStats, Long> {
List<GameStats> findAll();
Optional<GameStats> findById(Long id);
}

View File

@ -88,6 +88,7 @@ function form_heal(jobj) {
get_text_api(jobj.textDescId, function(t) {
$("#heal_desc_text").val(t);
});
$("#childFree").prop("checked", jobj.isChildfree);
$("#health_index").val(jobj.health_index);
}