diff --git a/resources/js/views/player.js b/resources/js/views/player.js index 1b09403..5816f73 100644 --- a/resources/js/views/player.js +++ b/resources/js/views/player.js @@ -24,6 +24,8 @@ _ var Player = Backbone.View.extend({ el: $("body > div.ui-layout-north") + , elViewport: null + , $elViewport: null , playIndex: [] @@ -37,7 +39,12 @@ _ that.$el.html(tmplPlayerLayout); - that.$el.find("div:last").html(_.template(tmplPlayerStatus)({})); + that.elViewport = document.createElement("div"); + that.$elViewport = $(that.elViewport); + + that.$elViewport.html(_.template(tmplPlayerStatus)({})); + + that.$el.append(that.elViewport); return that; } diff --git a/resources/templates/player/layout.html b/resources/templates/player/layout.html index dc24b7a..d5390e7 100644 --- a/resources/templates/player/layout.html +++ b/resources/templates/player/layout.html @@ -14,5 +14,4 @@ - -
\ No newline at end of file + \ No newline at end of file