yet some more missing files
authorSven Hecht <sven@sven-laptop.(none)>
Fri, 19 Jun 2009 23:50:44 +0000 (01:50 +0200)
committerSven Hecht <sven@sven-laptop.(none)>
Fri, 19 Jun 2009 23:50:44 +0000 (01:50 +0200)
web/index.php
web/js/communication.js

index d5e29c2..cdf3d96 100644 (file)
@@ -1,6 +1,7 @@
 <?php
+       function __autoload($class_name) { require_once $class_name . '.php'; }
 
-//require("php/communication.php");
+//require("php/Communication.php");
 
 //$res = GetPlantList();
 //echo $res;
@@ -13,6 +14,8 @@
        <head>
                <title>L-Seed</title>
 
+               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
                <link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
                <link rel="stylesheet" type="text/css" href="ext/resources/css/xtheme-slate.css" />
                <link rel="stylesheet" type="text/css" href="css/RowEditor.css" />
 
                <div id="content"/>
        </body>
-</html>
\ No newline at end of file
+</html>
index 584be1f..a6923b7 100644 (file)
@@ -31,7 +31,7 @@ Lseed.Communication = function() {
                var params = {};
                Ext.apply(params, opts, { cmd: cmd });
                Ext.Ajax.request({
-                       url: 'php/communication.php',
+                       url: 'php/Communication.php',
                        success: this.handleResponse.createDelegate(this)
                        ,failure: function(response, opts) {
                                Ext.MessageBox.alert("Fehler", "Es konnte keine Verbindung zum Server hergestellt werden.")
@@ -479,7 +479,7 @@ Lseed.Editor = function() {
                
                communication.sendMessage(Lseed.MessageCommands.RPC, { 
                        func: 'SavePlant'
-                       ,name: plant.data.Name
+                       ,plant: plant.data.Name
                        ,code: plant.data.Code
                });
        };