fixing bug #4059
fixing behavior of treeview when changing folder status
replacing classic Javascript confirm by a 3-buttons Jquery dialog