Skip to content
Snippets Groups Projects
Commit 54b73cc3 authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

GameOfLife an PanelAPI angepasst

panelAPI-GET auf Only-Text umgestellt
parent 88ba3a42
Branches
No related tags found
No related merge requests found
......@@ -89,26 +89,34 @@ layout.insertTemplate = function(name, panel) {
});
}
}
$.get("panels/" + this.name + "/template.html", function(k) {
var n = this.name;
$.get("panels/" + n + "/template.html", function(k) {
console.log("get success of template " + n)
e.template=k;
doMore();
}).fail(function() {
layout.error("get fail");
},"text")
.fail(function() {
layout.error("get fail of template " + n );
});
$.get("style.php?style=" + this.name, function(k) {
$.get("style.php?style=" + n, function(k) {
console.log("get success of style " + n)
e.css=k;
doMore();
}).fail(function() {
layout.error("get fail");
},"text")
.fail(function() {
layout.error("get fail of style " + n);
});
$.get("panels/" + this.name + "/script.js", function(k) {
$.get("panels/" + n + "/script.js", function(k){
console.log("get success of script " + n)
e.js=k;
doMore();
}).fail(function() {
layout.error("get fail");
},"text")
.fail(function(e) {
layout.error("get fail of script " + n);
console.log(e);
});
}
......
......@@ -11,7 +11,7 @@ var GOLData = {
grid: 1
};
binder.loaded = function(panel, config) {
this.loaded = function(panel, config) {
GOLData.panel = panel;
GOLData.config = config;
GOLinit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment