mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
replacing spaces in savename, avoiding errors
git-svn-id: https://svn.fhem.de/fhem/trunk@2846 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f101f5118b
commit
a0ff626db1
@ -694,6 +694,8 @@ Ext.define('FHEM.controller.ChartController', {
|
|||||||
Ext.Msg.prompt("Select a name", "Enter a name to save the Chart", function(action, savename) {
|
Ext.Msg.prompt("Select a name", "Enter a name to save the Chart", function(action, savename) {
|
||||||
if (action === "ok" && !Ext.isEmpty(savename)) {
|
if (action === "ok" && !Ext.isEmpty(savename)) {
|
||||||
|
|
||||||
|
//replacing spaces in name
|
||||||
|
savename = savename.replace(" ", "_");
|
||||||
|
|
||||||
var device = this.getDevicecombo().getValue(),
|
var device = this.getDevicecombo().getValue(),
|
||||||
xaxis = this.getXaxiscombo().getValue(),
|
xaxis = this.getXaxiscombo().getValue(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user