Hi, I finally found the spot to tweak the Tablecalc Plugin!
In the plugin directory open script.js in a texteditor. Do a text search (e.g. STRG + F
or CTRL + F
depending on your keyboard) for the string timeout
. What you will find is the following line of code at the end of the first block of the main function tablecalc
:
setTimeout(tablecalc_final,0)
Yes, without the closing ;
! Just set the timeout to 100 milliseconds like so:
setTimeout(tablecalc_final,100)
This provides the necessary delay, I was talking about here:
Chris75 Difference is, Edge might load page too quick and Javascript isn't ready calculating yet.
Save your file, close and restart your browser and navigate back to the wiki page. Now, it works like a charm in Edge, Chrome, Firefox and IE11. (Tested with your test page wiki syntax on DokuWiki-on-a-stick, release Igor, Sprintdoc template, latest version of tablecalc plugin.)
EDIT: After more testing I found that at least part of your problem is related to using non-existing cell c5r99 in sum, like this: ~~=round(sum(items_2.c5r1:c5r99),2)~~
.
In fact, it broke my test setup (occasionally) and it's not recommended, anyways, see the plugin manual.
Cheers! 😀