Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
fb013272
Commit
fb013272
authored
Jan 05, 2015
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap full name placeholder in quotes to deal with spaces
Also fix failing JS test which was looking for a removed button.
parent
e9e1d350
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
13 deletions
+2
-13
lms/static/js/spec/verify_student/make_payment_step_view_spec.js
+1
-7
lms/static/js/verify_student/views/make_payment_step_view.js
+0
-5
lms/templates/verify_student/review_photos_step.underscore
+1
-1
No files found.
lms/static/js/spec/verify_student/make_payment_step_view_spec.js
View file @
fb013272
...
@@ -86,16 +86,10 @@ define([
...
@@ -86,16 +86,10 @@ define([
};
};
var
expectPaymentDisabledBecauseInactive
=
function
()
{
var
expectPaymentDisabledBecauseInactive
=
function
()
{
var
payButton
=
$
(
'#pay_button'
),
var
payButton
=
$
(
'#pay_button'
);
activateButton
=
$
(
'#activate_button'
);
// Payment button should be hidden
// Payment button should be hidden
expect
(
payButton
.
length
).
toEqual
(
0
);
expect
(
payButton
.
length
).
toEqual
(
0
);
// Activate button should be displayed and disabled
expect
(
activateButton
.
length
).
toEqual
(
1
);
expect
(
activateButton
.
hasClass
(
'is-disabled'
)
).
toBe
(
true
);
expect
(
activateButton
.
prop
(
'disabled'
)
).
toBe
(
true
);
};
};
var
goToPayment
=
function
(
requests
,
kwargs
)
{
var
goToPayment
=
function
(
requests
,
kwargs
)
{
...
...
lms/static/js/verify_student/views/make_payment_step_view.js
View file @
fb013272
...
@@ -38,11 +38,6 @@ var edx = edx || {};
...
@@ -38,11 +38,6 @@ var edx = edx || {};
// Set the payment button to disabled by default
// Set the payment button to disabled by default
this
.
setPaymentEnabled
(
false
);
this
.
setPaymentEnabled
(
false
);
// The activate button is always disabled
$
(
'#activate_button'
)
.
addClass
(
'is-disabled'
)
.
prop
(
'disabled'
,
true
);
// Update the contribution amount with the amount the user
// Update the contribution amount with the amount the user
// selected in a previous screen.
// selected in a previous screen.
if
(
templateContext
.
contributionAmount
)
{
if
(
templateContext
.
contributionAmount
)
{
...
...
lms/templates/verify_student/review_photos_step.underscore
View file @
fb013272
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div class="copy expandable-area">
<div class="copy expandable-area">
<p><%- gettext( "You should change the name on your account to match your ID." ) %></p>
<p><%- gettext( "You should change the name on your account to match your ID." ) %></p>
<input type="text" name="new-name" id="new-name" placeholder=
<%= fullName %>
>
<input type="text" name="new-name" id="new-name" placeholder=
"<%= fullName %>"
>
</div>
</div>
</div>
</div>
</li>
</li>
...
...
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