summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-03-30 20:48:03 +0300
committerLV-426 <lv-426@taproot.org.il>2015-04-01 22:25:54 +0300
commitcb766020382b59294a3975ad0e1317bce0a45423 (patch)
treeb0e3c2319804f363594398dfc1efe5d29837e1a9 /src
parent70b8f6602572dc8a2deb807849036d03faa1faba (diff)
rz_api_backend: misc: log with console.dir(), import util module
Diffstat (limited to 'src')
-rw-r--r--src/client/rz_api_backend.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js
index a5aafff6..bef8bde1 100644
--- a/src/client/rz_api_backend.js
+++ b/src/client/rz_api_backend.js
@@ -3,14 +3,7 @@
/**
* API calls designed to execute against a local backend service
*/
-define(['model/core'], function(model_core) {
-
- function shorten(str, max_length) {
- if (str.length < max_length) {
- return str;
- }
- return str.substr(0, max_length - 3) + '...';
- }
+define(['util', 'model/core'], function(util, model_core) {
function RZ_API_Backend() {
@@ -20,9 +13,9 @@ define(['model/core'], function(model_core) {
var common_req_ctx = function() {
- var common_ctx = { rzdoc_name: model_core.rz_state.cur_rzdoc_name };
- return common_ctx
- }
+ var common_ctx = { rzdoc_name: rz_config.rzdoc_cur__name }; // FIXME: call rz_core.rzdoc_get_current + avoid requirejs circular dep
+ return common_ctx;
+ };
/**
* issue rhizi server ajax call