replacing spaces in savename, avoiding errors

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2846 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
johannnes
2013-03-03 11:34:40 +00:00
parent dd484a62be
commit b0ba3ba4b0

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(),