better errormessage on device store, escaping savenames from +
git-svn-id: https://svn.fhem.de/fhem/trunk@2857 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -41,12 +41,12 @@ UPD 2013-03-01_05:44:48 49099 FHEM/93_DbLog.pm
|
||||
UPD 2013-02-25_08:13:15 499 www/frontend/index.html
|
||||
UPD 2013-02-27_07:20:39 236 www/frontend/README.txt
|
||||
UPD 2013-03-02_04:42:03 1856 www/frontend/app/app.js
|
||||
UPD 2013-03-01_05:43:56 20350 www/frontend/app/view/LineChartPanel.js
|
||||
UPD 2013-03-06_06:52:12 20514 www/frontend/app/view/LineChartPanel.js
|
||||
UPD 2013-03-02_06:13:13 7826 www/frontend/app/view/Viewport.js
|
||||
UPD 2013-03-02_06:11:57 4269 www/frontend/app/view/DevicePanel.js
|
||||
UPD 2013-03-01_05:43:56 2503 www/frontend/app/view/TableDataGridPanel.js
|
||||
UPD 2013-03-01_05:43:55 1310 www/frontend/app/view/LineChartView.js
|
||||
UPD 2013-03-03_12:42:20 41690 www/frontend/app/controller/ChartController.js
|
||||
UPD 2013-03-05_07:35:50 41802 www/frontend/app/controller/ChartController.js
|
||||
UPD 2013-03-02_06:14:02 10733 www/frontend/app/controller/MainController.js
|
||||
UPD 2013-03-01_05:43:32 202 www/frontend/app/model/ReadingsModel.js
|
||||
UPD 2013-03-01_05:43:32 338 www/frontend/app/model/SavedChartsModel.js
|
||||
|
||||
@@ -697,6 +697,9 @@ Ext.define('FHEM.controller.ChartController', {
|
||||
//replacing spaces in name
|
||||
savename = savename.replace(/ /g, "_");
|
||||
|
||||
//replacing + in name
|
||||
savename = savename.replace(/\+/g, "_");
|
||||
|
||||
var device = this.getDevicecombo().getValue(),
|
||||
xaxis = this.getXaxiscombo().getValue(),
|
||||
yaxis = this.getYaxiscombo().getValue(),
|
||||
|
||||
@@ -48,9 +48,9 @@ Ext.define('FHEM.view.LineChartPanel', {
|
||||
me.comboDevice2Store = Ext.create('FHEM.store.DeviceStore');
|
||||
me.comboDevice3Store = Ext.create('FHEM.store.DeviceStore');
|
||||
|
||||
me.comboDeviceStore.on("load", function(store, e, success) {
|
||||
me.comboDeviceStore.on("load", function(store, recs, success, operation) {
|
||||
if(!success) {
|
||||
Ext.Msg.alert("Error", "Connection to database failed! Check your configuration.");
|
||||
Ext.Msg.alert("Error", "Something went wrong. Store Items: " + store.getCount() + ", loaded Items: " + recs.length + ", Reader rawrecords: " + store.getProxy().getReader().rawData.data.length + ", proxyURL: " + store.getProxy().url);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user