summaryrefslogtreecommitdiff
path: root/src/client/rz_api_backend.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rz_api_backend.js')
-rw-r--r--src/client/rz_api_backend.js33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js
index 79b8ab89..1d23633e 100644
--- a/src/client/rz_api_backend.js
+++ b/src/client/rz_api_backend.js
@@ -132,22 +132,6 @@ define(['model/core'], function(model_core) {
}
/**
- * clone rhizi repo
- */
- this.clone = function(depth, on_success, on_error) {
-
- var req_data = common_req_ctx();
-
- // prep request
- var req_opts = {
- type : 'POST',
- data : JSON.stringify(req_data)
- };
-
- ajax_rs('/graph/clone', req_opts, on_success, on_error);
- }
-
- /**
* load node-set by id attribute
*
* @param on_complete_cb
@@ -239,6 +223,23 @@ define(['model/core'], function(model_core) {
var attr_diff = null;
return this.attr_diff_commit(null);
}
+
+ /**
+ * clone rhizi repo
+ */
+ this.rzdoc_clone = function(on_success, on_error) {
+
+ var req_data = common_req_ctx();
+
+ // prep request
+ var req_opts = {
+ type : 'POST',
+ data : JSON.stringify(req_data)
+ };
+
+ ajax_rs('/graph/clone', req_opts, on_success, on_error);
+ }
+
}
return new RZ_API_Backend();