Dashticz - [BETA] Function - Sortable blocks

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
htilburgs
Posts: 464
Joined: Tuesday 03 November 2015 11:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post 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
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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by robgeerts »

For some reason the save button doesnt work on some devices.... havent found a solution yet..
raymond
Posts: 71
Joined: Monday 12 October 2015 15:46
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10232
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post 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.
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post 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?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by DewGew »

I commented out:

Code: Select all

else if (curdiv.indexOf(".") > 0) {
cols += curdiv + ', ';
}
Now it seems to work again.
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post by robgeerts »

Fixed in latest beta, thanks for pointing this out.
raymond
Posts: 71
Joined: Monday 12 October 2015 15:46
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10232
Contact:

Re: Dashticz - [BETA] Function - Sortable blocks

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest