* Change delete stage config.
This commit is contained in:
@@ -18,6 +18,8 @@ $config->stage->actionList['edit']['hint'] = $lang->stage->edit;
|
||||
$config->stage->actionList['edit']['url'] = helper::createLink('stage', 'edit', 'stageID={id}', '', true);
|
||||
$config->stage->actionList['edit']['data-toggle'] = 'modal';
|
||||
|
||||
$config->stage->actionList['delete']['icon'] = 'trash';
|
||||
$config->stage->actionList['delete']['hint'] = $lang->stage->delete;
|
||||
$config->stage->actionList['delete']['url'] = 'javascript:confirmDelete("{id}")';
|
||||
$config->stage->actionList['delete']['icon'] = 'trash';
|
||||
$config->stage->actionList['delete']['hint'] = $lang->stage->delete;
|
||||
$config->stage->actionList['delete']['url'] = helper::createLink('stage', 'delete', 'stageID={id}');
|
||||
$config->stage->actionList['delete']['class'] = 'ajax-form';
|
||||
$config->stage->actionList['delete']['data-confirm'] = $lang->stage->confirmDelete;
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* 提示并删除阶段。
|
||||
* Delete stage with tips.
|
||||
*
|
||||
* @param int stageID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
window.confirmDelete = function(stageID)
|
||||
{
|
||||
zui.Modal.confirm(confirmDelete).then((res) =>
|
||||
{
|
||||
if(res) $.ajaxSubmit({url: $.createLink('stage', 'delete', 'stageID=' + stageID)});
|
||||
})
|
||||
}
|
||||
@@ -9,7 +9,6 @@ declare(strict_types=1);
|
||||
* @link https://www.zentao.net
|
||||
*/
|
||||
namespace zin;
|
||||
jsVar('confirmDelete', $lang->stage->confirmDelete);
|
||||
|
||||
featureBar
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user