Fixed tree view with multi line labels
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index 5ef8dee..feab93f 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -13,7 +13,8 @@
vcClass,
tutClass,
domReady,
- hintArray) {
+ hintArray,
+ alertifyClass) {
domReady(function (event) {
var obj = {};
@@ -130,7 +131,8 @@
};
// Initialize queries for document
- obj.tutorial.initQueries(document);
+ if (obj.tutorial)
+ obj.tutorial.initQueries(document);
/**
* Init hint helper
@@ -148,10 +150,10 @@
KorAP.log = function (type, msg) {
// Use alertify to log errors
- alertify.log(
+ alertifyClass.log(
(type === 0 ? '' : type + ': ') +
msg,
- 'warn',
+ 'error',
5000
);
};