Permalink
Browse files

Fix #44 Slide notes not showing up in onstage.html

  • Loading branch information...
1 parent 6a7ddb9 commit b2ecd0bb224a2923f0d6dfa8a5b7fd6b2689cc6e @hsablonniere hsablonniere committed Nov 10, 2011
Showing with 19 additions and 21 deletions.
  1. +19 −21 shells/onstage.html
View
@@ -202,29 +202,27 @@
Dz.onmessage = function(aEvent) {
var argv = aEvent.data.split(" "), argc = argv.length;
argv.forEach(function(e, i, a) { a[i] = decodeURIComponent(e) });
- if (aEvent.source === this.views.present) {
- if (argv[0] === "CURSOR" && argc === 2) {
- if (aEvent.source === this.views.present) {
- var cursor = argv[1].split(".");
- if (this.idx != ~~cursor[0])
- this.postMsg(this.views.present, "GET_NOTES");
- this.idx = ~~cursor[0];
- this.step = ~~cursor[1];
- $("#slideidx").innerHTML = argv[1];
- this.postMsg(this.views.future, "SET_CURSOR", this.idx + "." + (this.step + 1));
- if (this.views.remote)
- this.postMsg(this.views.remote, "SET_CURSOR", argv[1]);
- } else {
- $("#nextslideidx").innerHTML = argv[1];
- }
- }
- if (argv[0] === "CURSOR" && argc === 2) {
- if (argv[0] === "NOTES" && argc === 2)
- $("#notes > #content").innerHTML = this.notes = argv[1];
- if (argv[0] === "REGISTERED" && argc === 3)
- $("#slidecount").innerHTML = argv[2];
+ if (argv[0] === "CURSOR" && argc === 2) {
+ if (aEvent.source === this.views.present) {
+ var cursor = argv[1].split(".");
+ if (this.idx != ~~cursor[0])
+ this.postMsg(this.views.present, "GET_NOTES");
+ this.idx = ~~cursor[0];
+ this.step = ~~cursor[1];
+ $("#slideidx").innerHTML = argv[1];
+ this.postMsg(this.views.future, "SET_CURSOR", this.idx + "." + (this.step + 1));
+ if (this.views.remote)
+ this.postMsg(this.views.remote, "SET_CURSOR", argv[1]);
+ } else {
+ $("#nextslideidx").innerHTML = argv[1];
}
}
+ if (aEvent.source === this.views.present) {
+ if (argv[0] === "NOTES" && argc === 2)
+ $("#notes > #content").innerHTML = this.notes = argv[1];
+ if (argv[0] === "REGISTERED" && argc === 3)
+ $("#slidecount").innerHTML = argv[2];
+ }
}
/* Get url from hash or prompt and store it */

0 comments on commit b2ecd0b

Please sign in to comment.