CreateEditGlossaryLayoutView.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. define([ "require", "backbone", "hbs!tmpl/glossary/CreateEditGlossaryLayoutView_tmpl", "utils/Utils", "utils/UrlLinks" ], function(require, Backbone, CreateEditGlossaryLayoutViewTmpl, Utils, UrlLinks) {
  2. var CreateEditGlossaryLayoutView = Backbone.Marionette.LayoutView.extend({
  3. _viewName: "CreateEditGlossaryLayoutView",
  4. template: CreateEditGlossaryLayoutViewTmpl,
  5. templateHelpers: function() {
  6. return {
  7. create: this.create
  8. };
  9. },
  10. regions: {},
  11. ui: {
  12. name: "[data-id='name']",
  13. shortDescription: "[data-id='shortDescription']",
  14. longDescription: "[data-id='longDescription']",
  15. glossaryForm: "[data-id='glossaryForm']"
  16. },
  17. events: function() {
  18. var events = {};
  19. return events;
  20. },
  21. initialize: function(options) {
  22. _.extend(this, _.pick(options, "glossaryCollection", "model")), this.model || (this.create = !0);
  23. },
  24. bindEvents: function() {},
  25. onRender: function() {}
  26. });
  27. return CreateEditGlossaryLayoutView;
  28. });