commit | c0a2da84e182424ca49ebfa994305d84491e1845 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Wed Jul 04 15:27:37 2018 +0200 |
committer | Akron <nils@diewald-online.de> | Thu Jul 19 12:13:15 2018 +0200 |
tree | 179bc99c837bdb4ad80279e6b2ec1d96f3151f75 | |
parent | e8e2c9567cb6eeb4ba298f6b4d6a89a3bf022aa8 [diff] [blame] |
Added source to log messages Change-Id: Iacc15ff3514373814ad4f4b3de206d6a83d5338d
diff --git a/dev/js/src/init.js b/dev/js/src/init.js index 0e9944d..54dc713 100644 --- a/dev/js/src/init.js +++ b/dev/js/src/init.js
@@ -52,7 +52,11 @@ // Override KorAP.log window.alertify = alertifyClass; - KorAP.log = function (code, msg) { + KorAP.log = function (code, msg, src) { + + if (src) { + msg += '<code class="src">'+src+'</code>'; + }; // Use alertify to log errors alertifyClass.log(