in src/main/resources/SLING-INF/libs/sling/resource-editor/static/js/tree/TreeController.js [104:119]
TreeController.prototype.copy = function(from, to) {
var thisTreeController = this;
var dest = to+"/";
var data = {
":operation": "copy",
":dest": dest};
$.post( from, data, function( data ) {
$( ".result" ).html( data );
}, "json")
.done(function() {
thisTreeController.mainController.redirectTo(to);
})
.fail(function(errorJson) {
thisTreeController.mainController.displayAlert(errorJson);
});;
}