Dashticz - [BETA] Function - Sortable blocks

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

User avatar
htilburgs
Posts: 509
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by htilburgs » Friday 25 August 2017 13:22

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
Hardware:
RPi3 - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug - Nest Thermostat v3

User avatar
robgeerts
Posts: 1233
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by robgeerts » Friday 25 August 2017 14:02

For some reason the save button doesnt work on some devices.... havent found a solution yet..
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

raymond
Posts: 92
Joined: Monday 12 October 2015 15:46
Target OS: Raspberry Pi
Domoticz version: V3.8275
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by raymond » Friday 25 August 2017 14:08

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.

User avatar
DewGew
Posts: 237
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by DewGew » Tuesday 12 December 2017 15:23

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?
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

User avatar
DewGew
Posts: 237
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V4.9741
Location: Sweden
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by DewGew » Wednesday 13 December 2017 16:22

I commented out:

Code: Select all

else if (curdiv.indexOf(".") > 0) {
cols += curdiv + ', ';
}
Now it seems to work again.
Raspberry Pi 2B - domoticz - Aeon Labs Z-Stick GEN5 - RFlink gateway
NanoPi NEO-air - domoticz - REGO6XX interface
Dashticz V2 - Homebridge

User avatar
robgeerts
Posts: 1233
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by robgeerts » Wednesday 13 December 2017 16:31

Fixed in latest beta, thanks for pointing this out.
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

raymond
Posts: 92
Joined: Monday 12 October 2015 15:46
Target OS: Raspberry Pi
Domoticz version: V3.8275
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by raymond » Monday 18 December 2017 15:36

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests