equal
deleted
inserted
replaced
44 |
44 |
45 IriSP.LayoutManager.prototype.setPopcornInstance = function(popcorn) { |
45 IriSP.LayoutManager.prototype.setPopcornInstance = function(popcorn) { |
46 this._Popcorn = popcorn; |
46 this._Popcorn = popcorn; |
47 } |
47 } |
48 |
48 |
49 IriSP.LayoutManager.prototype.createDiv = function() { |
49 /* stem is a string to append to the id of the widget */ |
50 var newDiv = Popcorn.guid(this._div + "_widget_"); |
50 IriSP.LayoutManager.prototype.createDiv = function(stem) { |
51 var spacerDiv = Popcorn.guid("_spacer_"); |
51 if (typeof(stem) === "undefined") |
|
52 stem = ""; |
|
53 |
|
54 var newDiv = Popcorn.guid(this._div + "_widget_" + stem + "_"); |
|
55 var spacerDiv = Popcorn.guid("LdtPlayer_spacer_"); |
52 this._widgets.push(newDiv); |
56 this._widgets.push(newDiv); |
53 |
57 |
54 var divTempl = "<div id='{{id}}' style='width: 100%; position: relative;'></div"; |
58 var divTempl = "<div id='{{id}}' style='width: 100%; position: relative;'></div"; |
55 var spacerTempl = "<div id='{{spacer_id}}' style='width: 100%; position: relative; height: {{spacer_div_height}};'></div"; |
59 var spacerTempl = "<div id='{{spacer_id}}' style='width: 100%; position: relative; height: {{spacer_div_height}};'></div"; |
56 |
60 |