group.ui.js 392 B

12345678910111213141516
  1. /**
  2. * 提示并删除分组。
  3. * Delete group with tips.
  4. *
  5. * @param int groupID
  6. * @param string groupName
  7. * @access public
  8. * @return void
  9. */
  10. window.confirmDelete = function(groupID, groupName)
  11. {
  12. zui.Modal.confirm(confirmDelete.replace('%s', groupName)).then((res) =>
  13. {
  14. if(res) $.ajaxSubmit({url: $.createLink('group', 'delete', 'groupID=' + groupID)});
  15. });
  16. }