formTemplateModel.js 598 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Model that represents our form template.
  3. *
  4. * @package Ninja Forms client
  5. * @copyright (c) 2017 WP Ninjas
  6. * @since 3.0
  7. */
  8. define( [], function() {
  9. var model = Backbone.Model.extend( {
  10. defaults: {
  11. objectType: 'template',
  12. id: 'none',
  13. title: 'unknown',
  14. type: ''
  15. },
  16. initialize: function() {
  17. this.set( 'desc', this.get( 'template-desc' ) );
  18. this.set( 'modal-content', this.get( 'modal-content' ) );
  19. this.set( 'modal-title', this.get( 'modal-title' ) );
  20. }
  21. } );
  22. return model;
  23. } );