view.ui.js 361 B

123456789101112131415
  1. /**
  2. * 提示并删除日志。
  3. * Delete effort with tips.
  4. *
  5. * @param int effortID
  6. * @access public
  7. * @return void
  8. */
  9. window.confirmDelete = function(effortID)
  10. {
  11. zui.Modal.confirm(confirmDelete).then((res) =>
  12. {
  13. if(res) $.ajaxSubmit({url: $.createLink('effort', 'delete', 'effortID=' + effortID + '&confirm=yes&from=view')});
  14. });
  15. }