This commit is contained in:
2026-03-15 01:07:21 +01:00
parent e92c9fe522
commit 4ca7f035c0
9 changed files with 374 additions and 22 deletions

View File

@@ -706,6 +706,37 @@
});
});
// change task parent
$( 'body' ).on( 'change', 'select[name="task_parent"]', function() {
var task_id = $( this ).attr( 'task_id' );
var parent_id = $( this ).val();
$.ajax({
url: '/tasks/task_change_parent/',
type: 'POST',
data: {
task_id: task_id,
parent_id: parent_id
},
success: function( response )
{
var data = jQuery.parseJSON( response );
if ( data.status == 'success' )
{
var projects = jQuery( 'input[name="projects"]:checked' ).map(function() {
return this.value;
}).get();
projects.join( "," );
var users = jQuery( 'input[name="users"]:checked' ).map(function() {
return this.value;
}).get();
close_task_popup();
reload_tasks( projects, users );
}
}
});
});
$( 'body' ).on( 'change', 'select[name="task_status"]', function() {
var task_id = $( this ).attr( 'task_id' );
var status = $( this ).val();