diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-03-30 20:48:03 +0300 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-04-01 22:25:54 +0300 |
| commit | cb766020382b59294a3975ad0e1317bce0a45423 (patch) | |
| tree | b0e3c2319804f363594398dfc1efe5d29837e1a9 /src | |
| parent | 70b8f6602572dc8a2deb807849036d03faa1faba (diff) | |
rz_api_backend: misc: log with console.dir(), import util module
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/rz_api_backend.js | 15 |
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 |
