Commit 45d4602c authored by Kevin Stover's avatar Kevin Stover

Merge branch '3.0' into 3.0-alpha

parents debcf3b8 c44c6f0d
({
baseUrl: 'builder/',
out: 'min/builder.js',
optimize: 'uglify2',
name: '../lib/almond',
include: ['main'],
wrap: true
})
\ No newline at end of file
#!/bin/bash
r.js -o baseUrl=builder/ out=min/builder.js optimize=uglify2 name=../lib/almond include=main wrap=true
r.js -o baseUrl=front-end/ out=min/front-end.js optimize=uglify2 name=../lib/almond include=main wrap=true
\ No newline at end of file
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/settingCollection'], function( settingCollection ) {
define( ['models/app/settingCollection'], function( settingCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
this.collection = new settingCollection( actionSettings );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/actions/actionCollection', 'builder/models/actions/actionModel'], function( actionCollection, actionModel ) {
define( ['models/actions/actionCollection', 'models/actions/actionModel'], function( actionCollection, actionModel ) {
var controller = Marionette.Object.extend( {
initialize: function() {
this.listenTo( nfRadio.channel( 'actions' ), 'click:addAction', this.addAction );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/actions/actionCollection', 'builder/models/actions/actionModel'], function( actionCollection, actionModel ) {
define( ['models/actions/actionCollection', 'models/actions/actionModel'], function( actionCollection, actionModel ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Load our action collection from our localized form data
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/actions/typeCollection'], function( typeCollection ) {
define( ['models/actions/typeCollection'], function( typeCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Listen to our change filter event.
......
......@@ -11,9 +11,9 @@
* @since 3.0
*/
define( [
'builder/models/app/typeCollection',
'builder/models/app/settingCollection',
'builder/models/app/settingGroupCollection',
'models/app/typeCollection',
'models/app/settingCollection',
'models/app/settingGroupCollection',
], function(
typeCollection,
settingCollection,
......
......@@ -8,7 +8,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/appModel'], function( appModel ) {
define( ['models/app/appModel'], function( appModel ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Get the collection that represents all the parts of our application.
......
......@@ -18,19 +18,19 @@
*/
define( [
// Require our domain collection
'builder/models/app/domainCollection',
'models/app/domainCollection',
// Require our fields domain files
'builder/views/fields/mainHeader',
'builder/views/fields/subHeader',
'builder/views/fields/mainContentFieldCollection',
'views/fields/mainHeader',
'views/fields/subHeader',
'views/fields/mainContentFieldCollection',
// Require our actions domain files
'builder/views/actions/mainHeader',
'builder/views/actions/subHeader',
'builder/views/actions/mainContent',
'views/actions/mainHeader',
'views/actions/subHeader',
'views/actions/mainContent',
// Require our settings domain files
'builder/views/settings/mainHeader',
'builder/views/settings/subHeader',
'builder/views/settings/mainContent',
'views/settings/mainHeader',
'views/settings/subHeader',
'views/settings/mainContent',
],
function(
appDomainCollection,
......
......@@ -9,13 +9,13 @@
* @since 3.0
*/
define( [
'builder/models/app/drawerCollection',
'builder/views/fields/drawer/addField',
'builder/views/app/drawer/editSettings',
'builder/views/actions/drawer/addAction',
'builder/views/settings/drawer/editFormSettings',
'builder/views/app/drawer/contentViewChanges',
'builder/views/app/drawer/headerViewChanges'
'models/app/drawerCollection',
'views/fields/drawer/addField',
'views/app/drawer/editSettings',
'views/actions/drawer/addAction',
'views/settings/drawer/editFormSettings',
'views/app/drawer/contentViewChanges',
'views/app/drawer/headerViewChanges'
], function(
drawerCollection,
addFieldView,
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/drawer/typeSettingFieldset','builder/models/app/settingCollection'], function( fieldsetView, settingCollection ) {
define( ['views/app/drawer/typeSettingFieldset','models/app/settingCollection'], function( fieldsetView, settingCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
nfRadio.channel( 'fieldset' ).reply( 'get:settingChildView', this.getSettingChildView, this );
......
......@@ -7,7 +7,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/formModel'], function( formModel) {
define( ['models/app/formModel'], function( formModel) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Instantiate Form Model
......
......@@ -9,7 +9,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/drawer/itemSetting'], function( itemSettingView ) {
define( ['views/app/drawer/itemSetting'], function( itemSettingView ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Respond to requests for field settings child views.
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/changeCollection', 'builder/models/app/changeModel'], function( changeCollection, ChangeModel ) {
define( ['models/app/changeCollection', 'models/app/changeModel'], function( changeCollection, ChangeModel ) {
var controller = Marionette.Object.extend( {
initialize: function() {
this.collection = new changeCollection();
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/fieldCollection', 'builder/models/fields/fieldModel'], function( fieldCollection, fieldModel ) {
define( ['models/fields/fieldCollection', 'models/fields/fieldModel'], function( fieldCollection, fieldModel ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Load our field collection from our localized form data
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/settingCollection'], function( settingCollection ) {
define( ['models/app/settingCollection'], function( settingCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
this.collection = new settingCollection( fieldSettings );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/typeSectionCollection'], function( fieldTypeSectionCollection ) {
define( ['models/fields/typeSectionCollection'], function( fieldTypeSectionCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Listen to our change filter event.
......
......@@ -10,7 +10,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/listOptionModel', 'builder/models/fields/listOptionCollection', 'builder/views/fields/drawer/typeSettingListComposite'], function( listOptionModel, listOptionCollection, listCompositeView ) {
define( ['models/fields/listOptionModel', 'models/fields/listOptionCollection', 'views/fields/drawer/typeSettingListComposite'], function( listOptionModel, listOptionCollection, listCompositeView ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Respond to requests for the childView for list type fields.
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/typeSectionCollection'], function( fieldTypeSectionCollection ) {
define( ['models/fields/typeSectionCollection'], function( fieldTypeSectionCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Create our collection for saved fields
......
......@@ -9,7 +9,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/stagingCollection'], function( stagingCollection ) {
define( ['models/fields/stagingCollection'], function( stagingCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Create our staged fields collection
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/stagingCollection'], function( stagingCollection ) {
define( ['models/fields/stagingCollection'], function( stagingCollection ) {
var controller = Marionette.Object.extend( {
initialize: function() {
// Listen to our field type draggables
......
......@@ -12,10 +12,10 @@
* @since 3.0
*/
define( [
'builder/models/app/typeCollection',
'builder/models/app/settingCollection',
'builder/models/app/settingGroupCollection',
'builder/models/fields/typeSectionCollection'
'models/app/typeCollection',
'models/app/settingCollection',
'models/app/settingGroupCollection',
'models/fields/typeSectionCollection'
], function(
fieldTypeCollection,
settingCollection,
......
......@@ -11,56 +11,56 @@ define(
/*
* Application controllers
*/
'builder/controllers/app/drawer',
'builder/controllers/app/drawerConfig',
'builder/controllers/app/domainConfig',
'builder/controllers/app/data',
'builder/controllers/app/drawerToggleSettingGroup',
'builder/controllers/app/updateDB',
'builder/controllers/app/formData',
'builder/controllers/app/previewLink',
'builder/controllers/app/menuButtons',
'builder/controllers/app/trackChanges',
'builder/controllers/app/undoChanges',
'builder/controllers/app/publishResponse',
'builder/controllers/app/changeDomain',
'builder/controllers/app/pushstate',
'builder/controllers/app/hotkeys',
'builder/controllers/app/cleanState',
'builder/controllers/app/coreUndo',
'builder/controllers/app/cloneModelDeep',
'builder/controllers/app/getSettingChildView',
'builder/controllers/app/changeSettingDefault',
'builder/controllers/app/fieldset',
'builder/controllers/app/toggleSetting',
'builder/controllers/app/itemControls',
'controllers/app/drawer',
'controllers/app/drawerConfig',
'controllers/app/domainConfig',
'controllers/app/data',
'controllers/app/drawerToggleSettingGroup',
'controllers/app/updateDB',
'controllers/app/formData',
'controllers/app/previewLink',
'controllers/app/menuButtons',
'controllers/app/trackChanges',
'controllers/app/undoChanges',
'controllers/app/publishResponse',
'controllers/app/changeDomain',
'controllers/app/pushstate',
'controllers/app/hotkeys',
'controllers/app/cleanState',
'controllers/app/coreUndo',
'controllers/app/cloneModelDeep',
'controllers/app/getSettingChildView',
'controllers/app/changeSettingDefault',
'controllers/app/fieldset',
'controllers/app/toggleSetting',
'controllers/app/itemControls',
/*
* Fields domain controllers
*/
'builder/controllers/fields/types',
'builder/controllers/fields/fieldTypeDrag',
'builder/controllers/fields/stagingDrag',
'builder/controllers/fields/savedFieldsSection',
'builder/controllers/fields/staging',
'builder/controllers/fields/stagingSortable',
'builder/controllers/fields/filterTypes',
'builder/controllers/fields/sortable',
'builder/controllers/fields/data',
'builder/controllers/fields/listField',
'builder/controllers/fields/editActive',
'builder/controllers/fields/fieldSettings',
'controllers/fields/types',
'controllers/fields/fieldTypeDrag',
'controllers/fields/stagingDrag',
'controllers/fields/savedFieldsSection',
'controllers/fields/staging',
'controllers/fields/stagingSortable',
'controllers/fields/filterTypes',
'controllers/fields/sortable',
'controllers/fields/data',
'controllers/fields/listField',
'controllers/fields/editActive',
'controllers/fields/fieldSettings',
/*
* TODO: Actions domain controllers
*/
'builder/controllers/actions/types',
'builder/controllers/actions/data',
'builder/controllers/actions/actionSettings',
'builder/controllers/actions/editActive',
'builder/controllers/actions/addActionTypes',
'builder/controllers/actions/typeDrag',
'builder/controllers/actions/droppable',
'builder/controllers/actions/filterTypes',
'controllers/actions/types',
'controllers/actions/data',
'controllers/actions/actionSettings',
'controllers/actions/editActive',
'controllers/actions/addActionTypes',
'controllers/actions/typeDrag',
'controllers/actions/droppable',
'controllers/actions/filterTypes',
/*
* TODO: Settings domain controllers
......
require.config( {
baseUrl: nfAdmin.requireBaseUrl
baseUrl: nfAdmin.requireBaseUrl + '/builder/'
} );
var nfRadio = Backbone.Radio;
jQuery( document ).ready( function( $ ) {
require( ['builder/views/app/builder', 'builder/controllers/loadControllers'], function( BuilderView, LoadControllers ) {
require( ['views/app/builder', 'controllers/loadControllers'], function( BuilderView, LoadControllers ) {
var NinjaForms = Marionette.Application.extend( {
......
......@@ -9,7 +9,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/actions/actionModel'], function( actionModel ) {
define( ['models/actions/actionModel'], function( actionModel ) {
var collection = Backbone.Collection.extend( {
model: actionModel,
comparator: 'order',
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/actions/typeModel'], function( actionTypeModel ) {
define( ['models/actions/typeModel'], function( actionTypeModel ) {
var collection = Backbone.Collection.extend( {
model: actionTypeModel
} );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/changeModel'], function( domainModel ) {
define( ['models/app/changeModel'], function( domainModel ) {
var collection = Backbone.Collection.extend( {
model: domainModel,
comparator: function( model ) {
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/domainModel'], function( domainModel ) {
define( ['models/app/domainModel'], function( domainModel ) {
var collection = Backbone.Collection.extend( {
model: domainModel
} );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/drawerModel'], function( drawerModel ) {
define( ['models/app/drawerModel'], function( drawerModel ) {
var collection = Backbone.Collection.extend( {
model: drawerModel
} );
......
define( ['builder/views/app/drawer/headerDefault'], function( defaultHeaderView ) {
define( ['views/app/drawer/headerDefault'], function( defaultHeaderView ) {
var model = Backbone.Model.extend( {
defaults: {
getHeaderView: function( data ) {
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/settingModel'], function( settingModel ) {
define( ['models/app/settingModel'], function( settingModel ) {
var collection = Backbone.Collection.extend( {
model: settingModel
} );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/settingGroupModel'], function( settingGroupModel ) {
define( ['models/app/settingGroupModel'], function( settingGroupModel ) {
var collection = Backbone.Collection.extend( {
model: settingGroupModel
} );
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/app/typeModel'], function( typeModel ) {
define( ['models/app/typeModel'], function( typeModel ) {
var collection = Backbone.Collection.extend( {
model: typeModel
} );
......
......@@ -9,7 +9,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/fieldModel'], function( fieldModel ) {
define( ['models/fields/fieldModel'], function( fieldModel ) {
var collection = Backbone.Collection.extend( {
model: fieldModel,
comparator: 'order',
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/listOptionModel'], function( listOptionModel ) {
define( ['models/fields/listOptionModel'], function( listOptionModel ) {
var collection = Backbone.Collection.extend( {
model: listOptionModel,
comparator: 'order',
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/stagingModel'], function( stagingModel ) {
define( ['models/fields/stagingModel'], function( stagingModel ) {
var collection = Backbone.Collection.extend( {
model: stagingModel,
comparator: 'order'
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/models/fields/typeSectionModel'], function( typeSectionModel ) {
define( ['models/fields/typeSectionModel'], function( typeSectionModel ) {
var collection = Backbone.Collection.extend( {
model: typeSectionModel
} );
......
......@@ -8,7 +8,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/itemControls'], function( itemControlsView ) {
define( ['views/app/itemControls'], function( itemControlsView ) {
var view = Marionette.LayoutView.extend({
tagName: 'tr',
template: '#nf-tmpl-action-item',
......
......@@ -8,7 +8,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/actions/drawer/typeCollection'], function( actionTypeCollectionView ) {
define( ['views/actions/drawer/typeCollection'], function( actionTypeCollectionView ) {
var view = Marionette.LayoutView.extend( {
template: '#nf-tmpl-drawer-content-add-action',
......
define( ['builder/views/actions/drawer/typeButton'], function( actionTypeButtonView ) {
define( ['views/actions/drawer/typeButton'], function( actionTypeButtonView ) {
var view = Marionette.CompositeView.extend( {
template: '#nf-tmpl-drawer-action-type-section',
childView: actionTypeButtonView,
......
......@@ -8,7 +8,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/actions/actionItem', 'builder/views/actions/mainContentEmpty'], function( actionView, emptyView ) {
define( ['views/actions/actionItem', 'views/actions/mainContentEmpty'], function( actionView, emptyView ) {
var view = Marionette.CompositeView.extend({
template: '#nf-tmpl-action-table',
childView: actionView,
......
......@@ -12,7 +12,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/builderHeader', 'builder/views/app/main', 'builder/views/app/drawer/mobileMenu', 'builder/views/app/drawer'], function( headerView, mainView, menuDrawerView, drawerView ) {
define( ['views/app/builderHeader', 'views/app/main', 'views/app/drawer/mobileMenu', 'views/app/drawer'], function( headerView, mainView, menuDrawerView, drawerView ) {
var view = Marionette.LayoutView.extend( {
template: "#nf-tmpl-builder",
el: '#nf-builder',
......
......@@ -10,7 +10,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/header', 'builder/views/app/subHeader'], function( appHeaderView, appSubHeaderView ) {
define( ['views/app/header', 'views/app/subHeader'], function( appHeaderView, appSubHeaderView ) {
var view = Marionette.LayoutView.extend({
tagName: "div",
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/drawer/headerDefault', 'builder/views/app/drawer/contentEmpty'], function( drawerHeaderView, drawerEmptyView ) {
define( ['views/app/drawer/headerDefault', 'views/app/drawer/contentEmpty'], function( drawerHeaderView, drawerEmptyView ) {
var view = Marionette.LayoutView.extend( {
template: '#nf-tmpl-drawer',
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/drawer/contentViewChangesItem'], function( viewChangesItem ) {
define( ['views/app/drawer/contentViewChangesItem'], function( viewChangesItem ) {
var view = Marionette.CollectionView.extend( {
tagName: 'table',
className: 'nf-changes',
......
define( ['builder/views/app/drawer/itemSettingGroupCollection'], function( itemSettingGroupCollectionView ) {
define( ['views/app/drawer/itemSettingGroupCollection'], function( itemSettingGroupCollectionView ) {
var view = Marionette.LayoutView.extend({
tagName: 'div',
template: '#nf-tmpl-drawer-content-edit-settings',
......
define( ['builder/views/app/drawer/itemSettingCollection'], function( itemSettingCollectionView ) {
define( ['views/app/drawer/itemSettingCollection'], function( itemSettingCollectionView ) {
var view = Marionette.LayoutView.extend({
tagName: 'div',
template: '#nf-tmpl-drawer-content-edit-field-setting-group',
......
define( ['builder/views/app/drawer/itemSettingGroup'], function( itemSettingGroupView ) {
define( ['views/app/drawer/itemSettingGroup'], function( itemSettingGroupView ) {
var view = Marionette.CollectionView.extend( {
tagName: 'div',
childView: itemSettingGroupView,
......
define( ['builder/views/app/drawer/itemSetting'], function( itemSettingView ) {
define( ['views/app/drawer/itemSetting'], function( itemSettingView ) {
var view = Marionette.CompositeView.extend( {
template: '#nf-tmpl-edit-setting-wrap',
childView: itemSettingView,
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/menu', 'builder/views/app/menuButtons'], function( appMenuCollectionView, appMenuButtonsView ) {
define( ['views/app/menu', 'views/app/menuButtons'], function( appMenuCollectionView, appMenuButtonsView ) {
var view = Marionette.LayoutView.extend( {
tagName: 'div',
template: '#nf-tmpl-app-header',
......
......@@ -6,7 +6,7 @@
* @copyright (c) 2015 WP Ninjas
* @since 3.0
*/
define( ['builder/views/app/menuItem'], function( appMenuItemView ) {
define( ['views/app/menuItem'], function( appMenuItemView ) {
var view = Marionette.CollectionView.extend( {
tagName: 'div',
childView: appMenuItemView,
......
define( ['builder/views/fields/drawer/stagingCollection', 'builder/models/fields/stagingCollection', 'builder/views/fields/drawer/typeSectionCollection'], function( drawerStagingView, StagingCollection, fieldTypeSectionCollectionView ) {
define( ['views/fields/drawer/stagingCollection', 'models/fields/stagingCollection', 'views/fields/drawer/typeSectionCollection'], function( drawerStagingView, StagingCollection, fieldTypeSectionCollectionView ) {
var view = Marionette.LayoutView.extend( {
template: '#nf-tmpl-drawer-content-add-field',
......
define( ['builder/views/fields/drawer/stagedField', 'builder/views/fields/drawer/stagingEmpty'], function( stagedFieldView, stagedFieldsEmptyView ) {
define( ['views/fields/drawer/stagedField', 'views/fields/drawer/stagingEmpty'], function( stagedFieldView, stagedFieldsEmptyView ) {
var view = Marionette.CollectionView.extend( {
tagName: 'div',
childView: stagedFieldView,
......
define( ['builder/views/fields/drawer/typeSection'], function( fieldTypeSectionView ) {
define( ['views/fields/drawer/typeSection'], function( fieldTypeSectionView ) {
var view = Marionette.CollectionView.extend( {
tagName: 'div',
childView: fieldTypeSectionView,
......
define( ['builder/views/fields/drawer/typeSettingListOption', 'builder/views/fields/drawer/typeSettingListEmpty'], function( listOptionView, listEmptyView ) {
define( ['views/fields/drawer/typeSettingListOption', 'views/fields/drawer/typeSettingListEmpty'], function( listOptionView, listEmptyView ) {
var view = Marionette.CompositeView.extend( {
template: '#nf-tmpl-edit-setting-wrap',
childView: listOptionView,
......
define( ['builder/views/app/itemControls'], function( itemControlsView ) {
define( ['views/app/itemControls'], function( itemControlsView ) {
var view = Marionette.LayoutView.extend({
tagName: 'div',
template: '#nf-tmpl-main-content-field',
......
define( ['builder/views/fields/fieldItem', 'builder/views/fields/mainContentEmpty'], function( mainContentFieldView, mainContentFieldEmptyView ) {
define( ['views/fields/fieldItem', 'views/fields/mainContentEmpty'], function( mainContentFieldView, mainContentFieldEmptyView ) {
var view = Marionette.CollectionView.extend( {
tagName: 'div',
childView: mainContentFieldView,
......