* [bug#56625,done,1h] change name to id of tips.
This commit is contained in:
@@ -10,7 +10,11 @@ $(document).off('click','.batch-btn').on('click', '.batch-btn', function()
|
||||
const getNonClosableLink = $.createLink('execution', 'ajaxGetNonClosableExecutions', 'executionID=' + checkedList.join(','));
|
||||
$.getJSON(getNonClosableLink, function(exeuctions)
|
||||
{
|
||||
if(!exeuctions) return;
|
||||
if(!exeuctions || exeuctions.length == 0)
|
||||
{
|
||||
postBatchBtn($target, checkedList);
|
||||
return;
|
||||
}
|
||||
|
||||
const confirmCloseTip = confirmBatchCloseExecution.replace('%s', exeuctions.join(', '));
|
||||
zui.Modal.confirm(confirmCloseTip).then((res) =>
|
||||
|
||||
@@ -10,7 +10,7 @@ declare(strict_types=1);
|
||||
*/
|
||||
namespace zin;
|
||||
|
||||
$confirmTip = !empty($unclosedTasks) ? sprintf($this->lang->execution->confirmCloseExecution, implode($this->lang->comma, $unclosedTasks)) : '';
|
||||
$confirmTip = !empty($unclosedTasks) ? sprintf($this->lang->execution->confirmCloseExecution, implode($this->lang->comma, array_keys($unclosedTasks))) : '';
|
||||
$confirmURL = $this->createLink('execution', 'close', "executionID={$executionID}&from={$from}");
|
||||
$beforeSubmit = jsRaw("() =>
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ jsVar('executionAttr', $execution->attribute);
|
||||
jsVar('window.lastProjectID', $execution->project);
|
||||
jsVar('weekend', $config->execution->weekend);
|
||||
|
||||
$confirmTip = !empty($unclosedTasks) ? sprintf($this->lang->execution->confirmCloseExecution, implode($this->lang->comma, $unclosedTasks)) : '';
|
||||
$confirmTip = !empty($unclosedTasks) ? sprintf($this->lang->execution->confirmCloseExecution, implode($this->lang->comma, array_keys($unclosedTasks))) : '';
|
||||
$beforeSubmit = jsRaw("() =>
|
||||
{
|
||||
if($('[name=status]').val() != 'closed') return true;
|
||||
|
||||
Reference in New Issue
Block a user