Page 4 of 4

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Friday 25 August 2017 13:22
by htilburgs
Rob, trying out this new function. I put config['edit_mode'] = 1; in my CONFIG.js, refresh the dashboard and I got on the left side a column with devices. I can drag one to the dashboard. When I push "SAFE" on the right-bottom, nothing happens. After a refresh the item is gone.

- Raspberry PI 2B
- Latest beta version Dashticz
- Workstation is Microsoft Surface 4 with Windows 10
- Browsers is Google Chrome

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Friday 25 August 2017 14:02
by robgeerts
For some reason the save button doesnt work on some devices.... havent found a solution yet..

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Friday 25 August 2017 14:08
by raymond
Rob, I tried some more trouble shooting/google on this.
Since it doesn't work on Pi and Synology installed Dashticz, it might be that I need a linux package/javascript update? Since all browsers/clients/phones/pads result in the same thing.

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Tuesday 12 December 2017 14:23
by DewGew
I got this error when I try to save my block:

Code: Select all

Uncaught TypeError: Cannot read property 'indexOf' of undefined
I found that the error is in sortable.js:

curcol.find('> div').each(function () {
var curdiv = $(this).data('id');

if (typeof(curdiv) === 'number' || (parseFloat(curdiv) && curdiv.toLowerCase().indexOf("s") <= 0 && curdiv.toLowerCase().indexOf("_") <= 0)) {
cols += curdiv + ', ';
}
else if (curdiv.indexOf(".") > 0) {
cols += curdiv + ', ';
}
else {
cols += '\'' + curdiv + '\', ';
}


Any solution for this?

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Wednesday 13 December 2017 15:22
by DewGew
I commented out:

Code: Select all

else if (curdiv.indexOf(".") > 0) {
cols += curdiv + ', ';
}
Now it seems to work again.

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Wednesday 13 December 2017 15:31
by robgeerts
Fixed in latest beta, thanks for pointing this out.

Re: Dashticz - [BETA] Function - Sortable blocks

Posted: Monday 18 December 2017 14:36
by raymond
Not sure if this did change anything to my above error hitting the Save button, but it now works !

Now I have to figure out why the pop-up with settings is giving me a bunch of Undefined blocks still.