2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +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:
johannnes 2013-03-03 11:34:40 +00:00
parent f101f5118b
commit a0ff626db1

View File

@ -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) {
if (action === "ok" && !Ext.isEmpty(savename)) {
//replacing spaces in name
savename = savename.replace(" ", "_");
var device = this.getDevicecombo().getValue(),
xaxis = this.getXaxiscombo().getValue(),