diff options
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/scenery/types/video.js | 12 | ||||
| -rw-r--r-- | views/controls/reader/about-room.ejs | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/public/assets/javascripts/rectangles/engine/scenery/types/video.js b/public/assets/javascripts/rectangles/engine/scenery/types/video.js index e8bc7f7..ef25d8d 100644 --- a/public/assets/javascripts/rectangles/engine/scenery/types/video.js +++ b/public/assets/javascripts/rectangles/engine/scenery/types/video.js @@ -10,14 +10,20 @@ Scenery.types.video = Scenery.types.base.extend(function(base){ this.build() this.bind() - + if (opt.data) { + if (opt.wall) { + var position = opt.wall.mxToPosition(opt.data.position) + opt.index = opt.wall.surface.index_for_x( position.a, 0 ) + } + this.set_wall(opt) this.deserialize(opt.data) } else { - this.recenter() + this.set_wall(opt) + this.bounds && this.recenter() } - }, + }, build: function(){ switch (this.media.type) { diff --git a/views/controls/reader/about-room.ejs b/views/controls/reader/about-room.ejs index b27ea6d..e13f363 100644 --- a/views/controls/reader/about-room.ejs +++ b/views/controls/reader/about-room.ejs @@ -3,7 +3,9 @@ [[- name ]], <a href="[[- authorlink ]]">[[- author ]]</a> </h1> + [[ if (description) { ]] <span class="txt">[[- description ]]</span> + [[ } ]] <h2> Last modified [[- date ]] [[ if (canEdit) { ]] |
