Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ecommerce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
ecommerce
Commits
f1e16b16
Commit
f1e16b16
authored
Aug 17, 2015
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed user_eligibility* files to credit_eligibility_
This name better suits the data being modeled.
parent
e08a994a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
21 deletions
+19
-21
ecommerce/static/js/collections/credit_eligibility_collection.js
+4
-3
ecommerce/static/js/models/credit_eligibility_model.js
+0
-3
ecommerce/static/js/pages/credit_checkout.js
+15
-15
ecommerce/static/js/views/credit_eligibility_view.js
+0
-0
No files found.
ecommerce/static/js/collections/
user
_eligibility_collection.js
→
ecommerce/static/js/collections/
credit
_eligibility_collection.js
View file @
f1e16b16
define
([
'backbone'
,
'
js/models/user
_eligibility_model'
'
models/credit
_eligibility_model'
],
function
(
Backbone
,
EligibilityModel
)
{
function
(
Backbone
,
CreditEligibility
)
{
'use strict'
;
return
Backbone
.
Collection
.
extend
({
model
:
EligibilityModel
,
model
:
CreditEligibility
,
/*jshint undef: false */
url
:
lmsRootUrl
+
'/api/credit/v1/eligibility/'
,
...
...
ecommerce/static/js/models/
user
_eligibility_model.js
→
ecommerce/static/js/models/
credit
_eligibility_model.js
View file @
f1e16b16
...
...
@@ -4,9 +4,6 @@ define([
function
(
Backbone
)
{
'use strict'
;
// Stores our user eligibility information
return
Backbone
.
Model
.
extend
({});
}
);
ecommerce/static/js/pages/credit_checkout.js
View file @
f1e16b16
require
([
'jquery'
,
'backbone'
,
'
js/
models/user_model'
,
'
js/
models/tracking_model'
,
'
js/
models/course_model'
,
'
js/
collections/provider_collection'
,
'
js/collections/user
_eligibility_collection'
,
'
js/
views/clickable_view'
,
'
js/
views/analytics_view'
,
'
js/
views/payment_button_view'
,
'
js/
utils/utils'
,
'
js/
views/provider_view'
,
'
js/views/user
_eligibility_view'
'models/user_model'
,
'models/tracking_model'
,
'models/course_model'
,
'collections/provider_collection'
,
'
collections/credit
_eligibility_collection'
,
'views/clickable_view'
,
'views/analytics_view'
,
'views/payment_button_view'
,
'utils/utils'
,
'views/provider_view'
,
'
views/credit
_eligibility_view'
],
function
(
$
,
Backbone
,
...
...
@@ -19,13 +19,13 @@ require([
TrackingModel
,
CourseModel
,
ProviderCollection
,
EligibilityCollection
,
Credit
EligibilityCollection
,
ClickableView
,
AnalyticsView
,
PaymentButtonView
,
Utils
,
ProviderView
,
EligibilityView
)
{
Credit
EligibilityView
)
{
'use strict'
;
new
PaymentButtonView
({
...
...
@@ -37,8 +37,8 @@ require([
collection
:
new
ProviderCollection
()
});
new
EligibilityView
({
collection
:
new
EligibilityCollection
()
new
Credit
EligibilityView
({
collection
:
new
Credit
EligibilityCollection
()
});
var
courseModel
=
new
CourseModel
(),
...
...
ecommerce/static/js/views/
user
_eligibility_view.js
→
ecommerce/static/js/views/
credit
_eligibility_view.js
View file @
f1e16b16
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment