Dashticz - [BETA] Function - Sortable blocks

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

User avatar
htilburgs
Posts: 404
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Netherland
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:
Raspberry Pi 2B - 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

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, 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? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

raymond
Posts: 88
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: 109
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
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

User avatar
DewGew
Posts: 109
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi
Domoticz version: V3.8153
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

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, 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? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests