mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-09 08:03:24 +00:00
24 lines
709 B
JavaScript
24 lines
709 B
JavaScript
define('views/soundboard', function(require) {
|
|
"use strict";
|
|
|
|
var Marionette = require('marionette'),
|
|
SoundsFilterView = require('views/filter'),
|
|
SoundsView = require('views/sounds'),
|
|
SoundboardTemplate = require('hbs!templates/soundboard.hbs'),
|
|
SoundboardView;
|
|
|
|
SoundboardView = Marionette.LayoutView.extend({
|
|
template: SoundboardTemplate,
|
|
regions: {
|
|
'filter': '#filter',
|
|
'list': '#list'
|
|
},
|
|
onShow: function() {
|
|
this.showChildView('filter', new SoundsFilterView());
|
|
this.showChildView('list', new SoundsView());
|
|
}
|
|
});
|
|
|
|
return SoundboardView;
|
|
});
|