From 6128bb4ff31db9db7f7dae19f2947e8b8eca8675 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 8 Apr 2018 07:48:47 -0400 Subject: [PATCH] fix showMessage, showError --- src/public/javascripts/services/script_api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/public/javascripts/services/script_api.js b/src/public/javascripts/services/script_api.js index 4e5ed46a8..dc1523d73 100644 --- a/src/public/javascripts/services/script_api.js +++ b/src/public/javascripts/services/script_api.js @@ -1,6 +1,7 @@ import treeService from './tree.js'; import server from './server.js'; import utils from './utils.js'; +import infoService from './info.js'; function ScriptApi(startNote, currentNote) { const $pluginButtons = $("#plugin-buttons"); @@ -56,8 +57,8 @@ function ScriptApi(startNote, currentNote) { runOnServer, formatDateISO: utils.formatDateISO, parseDate: utils.parseDate, - showMessage: utils.showMessage, - showError: utils.showError, + showMessage: infoService.showMessage, + showError: infoService.showError, reloadTree: treeService.reload } }