replacing spaces in savename, avoiding errors

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2846 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
johannnes
2013-03-03 11:34:40 +00:00
parent a9c0199f4c
commit 56878e2827

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