a little change for health editing modal.
This commit is contained in:
parent
bc2b8322a4
commit
284dec2803
@ -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);
|
||||||
|
}
|
@ -88,6 +88,7 @@ function form_heal(jobj) {
|
|||||||
get_text_api(jobj.textDescId, function(t) {
|
get_text_api(jobj.textDescId, function(t) {
|
||||||
$("#heal_desc_text").val(t);
|
$("#heal_desc_text").val(t);
|
||||||
});
|
});
|
||||||
|
$("#childFree").prop("checked", jobj.isChildfree);
|
||||||
$("#health_index").val(jobj.health_index);
|
$("#health_index").val(jobj.health_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user