* Finish task #53651.
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
$(function()
|
||||
function sync(obj, executionID, projectID)
|
||||
{
|
||||
$('[id^="projects"]').change(function()
|
||||
var $td = $(obj).closest('td');
|
||||
if($td.find('[id^="syncStories"]').length == 0)
|
||||
{
|
||||
var executionID = $(this).attr('id').replace('projects', '');
|
||||
var $td = $(this).closest('td');
|
||||
if($td.find('[id^="sync"]').length == 0)
|
||||
{
|
||||
$td.append("<input type='hidden' id='sync" + executionID + "' name='sync[" + executionID + "]' value='no' />");
|
||||
}
|
||||
alert(confirmSync);
|
||||
$("#sync" + executionID).val('yes');
|
||||
})
|
||||
});
|
||||
console.log($td);
|
||||
$td.append("<input type='hidden' id='syncStories" + executionID + "' name='syncStories[" + executionID + "]' value='no' />");
|
||||
}
|
||||
var confirmVal = confirm(confirmSync);
|
||||
$("#syncStories" + executionID).val(confirmVal ? 'yes' : 'no');
|
||||
if(!confirmVal)
|
||||
{
|
||||
$(obj).val(projectID).trigger("chosen:updated");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<tr>
|
||||
<td><?php echo sprintf('%03d', $executionID) . html::hidden("executionIDList[$executionID]", $executionID);?></td>
|
||||
<?php if($config->systemMode == 'new' and isset($project) and $project->model == 'scrum'):?>
|
||||
<td class='text-left' style='overflow:visible'><?php echo html::select("projects[$executionID]", $allProjects, $executions[$executionID]->project, "class='form-control picker-select'");?></td>
|
||||
<td class='text-left' style='overflow:visible'><?php echo html::select("projects[$executionID]", $allProjects, $executions[$executionID]->project, "class='form-control picker-select' onchange='sync(this, $executionID, {$executions[$executionID]->project})'");?></td>
|
||||
<?php endif;?>
|
||||
<td title='<?php echo $executions[$executionID]->name?>'><?php echo html::input("names[$executionID]", $executions[$executionID]->name, "class='form-control'");?></td>
|
||||
<td><?php echo html::input("codes[$executionID]", $executions[$executionID]->code, "class='form-control'");?></td>
|
||||
|
||||
Reference in New Issue
Block a user