From 7f881cbcfab5998db8e57db2b5ae394150123b2a Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 23 Aug 2017 16:07:57 -0400 Subject: [PATCH] Organizing view files for Event reg front end. Renaming the eventRegistrantList view file to appView. --- js/eventRegApp.js | 2 +- js/views/{eventRegistrantList.js => appView.js} | 4 ++-- models/front/registrations/registration.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename js/views/{eventRegistrantList.js => appView.js} (95%) diff --git a/js/eventRegApp.js b/js/eventRegApp.js index 0c26225..6bf10ea 100644 --- a/js/eventRegApp.js +++ b/js/eventRegApp.js @@ -9,6 +9,6 @@ app.EventRegistrants = new app.EventRegistrantList(); jQuery(document).ready(function($){ - new app.EventRegistrantListView(); + new app.AppView(); }); diff --git a/js/views/eventRegistrantList.js b/js/views/appView.js similarity index 95% rename from js/views/eventRegistrantList.js rename to js/views/appView.js index a355aee..4c7aa7f 100644 --- a/js/views/eventRegistrantList.js +++ b/js/views/appView.js @@ -1,8 +1,8 @@ -// js/views/eventRegistrantList.js +// js/views/appView.js var app = app || {}; // Event Registrant List View -app.EventRegistrantListView = Backbone.View.extend({ +app.AppView = Backbone.View.extend({ el: '.glm-reg-level', diff --git a/models/front/registrations/registration.php b/models/front/registrations/registration.php index a8c8800..d91acc9 100644 --- a/models/front/registrations/registration.php +++ b/models/front/registrations/registration.php @@ -40,7 +40,7 @@ $scripts = array( 'backbone-local' => 'js/lib/backbone.localStorage.min.js', 'registrantView' => 'js/views/eventRegistrant.js', - 'registrantListView' => 'js/views/eventRegistrantList.js', + 'appView' => 'js/views/appView.js', 'registrantModel' => 'js/models/eventRegistrant.js', 'registrantList' => 'js/collections/eventRegistrantList.js', 'mybackboneapp' => 'js/eventRegApp.js', -- 2.17.1