You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

7 years ago
7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">기타 도구</h1>
  3. </div>
  4. <div class="panel panel-dark">
  5. <div class="panel-heading">
  6. <h4 class="panel-title">기타 도구</h4>
  7. </div>
  8. <div class="panel-body form-flex">
  9. <div class="form-group">
  10. <label class="control-label">통계자료 최적화</label>
  11. <div class="controls">
  12. <p class="form-control-static">
  13. <button class="btn btn-primary" data-button="optimize-statics" data-loading-text="최적화 중입니다..." ><i class="far fa-play-circle"></i> 최적화 실행하기</button>
  14. </p>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19. <script>
  20. $(function(){
  21. $('[data-button="optimize-statics"]').click(function(){
  22. var $btn = $(this).button('loading');
  23. $.ajax({
  24. url : '/ajax/tools/optimize_statics',
  25. type : 'get',
  26. success:function(res) {
  27. toastr.success('통계자료 최적화를 완료하였습니다.');
  28. },
  29. complete : function(){
  30. $btn.button('reset');
  31. }
  32. });
  33. });
  34. });
  35. </script>