equal
deleted
inserted
replaced
13 show_arrow: false |
13 show_arrow: false |
14 }; |
14 }; |
15 |
15 |
16 IriSP.Widgets.Slice.prototype.template = |
16 IriSP.Widgets.Slice.prototype.template = |
17 '<div class="Ldt-Slice"></div>' |
17 '<div class="Ldt-Slice"></div>' |
18 + '{{#show_arrow}}<div class="Ldt-Slice-Arrow"></div>{{/show_arrow}}' |
18 + '{{#show_arrow}}<div class="Ldt-Slice-Arrow"></div>{{/show_arrow}}'; |
19 |
19 |
20 IriSP.Widgets.Slice.prototype.draw = function() { |
20 IriSP.Widgets.Slice.prototype.draw = function() { |
21 |
21 |
22 this.renderTemplate(); |
22 this.renderTemplate(); |
23 |
23 |
38 values: [0, this.max], |
38 values: [0, this.max], |
39 min: 0, |
39 min: 0, |
40 max: this.max, |
40 max: this.max, |
41 change: function(event, ui) { |
41 change: function(event, ui) { |
42 if (_this.arrow) { |
42 if (_this.arrow) { |
43 _this.arrow.moveToTime((ui.values[0]+ui.values[1])/2) |
43 _this.arrow.moveToTime((ui.values[0]+ui.values[1])/2); |
44 } |
44 } |
45 if (_this.onBoundsChanged) { |
45 if (_this.onBoundsChanged) { |
46 _this.onBoundsChanged(ui.values[0],ui.values[1]); |
46 _this.onBoundsChanged(ui.values[0],ui.values[1]); |
47 } |
47 } |
48 }, |
48 }, |
72 }); |
72 }); |
73 }; |
73 }; |
74 |
74 |
75 IriSP.Widgets.Slice.prototype.show = function() { |
75 IriSP.Widgets.Slice.prototype.show = function() { |
76 this.$slider.show(); |
76 this.$slider.show(); |
77 } |
77 }; |
78 |
78 |
79 IriSP.Widgets.Slice.prototype.hide = function() { |
79 IriSP.Widgets.Slice.prototype.hide = function() { |
80 this.$slider.hide(); |
80 this.$slider.hide(); |
81 } |
81 }; |