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
5c178900
Commit
5c178900
authored
Oct 23, 2015
by
Matt Drayer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10291 from edx/asadiqbal08/SOL-1312-solution
SOL-1312 changes
parents
ab8edc22
0f394656
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cms/static/js/certificates/spec/views/certificate_editor_spec.js
+2
-2
cms/static/js/certificates/views/certificate_editor.js
+4
-1
No files found.
cms/static/js/certificates/spec/views/certificate_editor_spec.js
View file @
5c178900
...
...
@@ -18,7 +18,7 @@ function(_, Course, CertificateModel, SignatoryModel, CertificatesCollection, Ce
Notification
,
AjaxHelpers
,
TemplateHelpers
,
ViewHelpers
,
ValidationHelpers
,
CustomMatchers
)
{
'use strict'
;
var
MAX_SIGNATORIES
=
4
;
var
MAX_SIGNATORIES
=
100
;
var
SELECTORS
=
{
detailsView
:
'.certificate-details'
,
editView
:
'.certificate-edit'
,
...
...
@@ -198,7 +198,7 @@ function(_, Course, CertificateModel, SignatoryModel, CertificatesCollection, Ce
expect
(
this
.
collection
.
length
).
toBe
(
1
);
});
it
(
'user can only add signatories up to max
4
'
,
function
()
{
it
(
'user can only add signatories up to max
100
'
,
function
()
{
for
(
var
i
=
1
;
i
<
MAX_SIGNATORIES
;
i
++
)
{
this
.
view
.
$
(
SELECTORS
.
addSignatoryButton
).
click
();
}
...
...
cms/static/js/certificates/views/certificate_editor.js
View file @
5c178900
...
...
@@ -12,7 +12,10 @@ define([ // jshint ignore:line
function
(
$
,
_
,
Backbone
,
gettext
,
ListItemEditorView
,
SignatoryModel
,
SignatoryEditorView
)
{
'use strict'
;
var
MAX_SIGNATORIES_LIMIT
=
4
;
// If signatories limit is required to specific value then we can change it.
// However, Setting this limit to 100 that will allow PMs to add as many signatories as they want.
var
MAX_SIGNATORIES_LIMIT
=
100
;
var
CertificateEditorView
=
ListItemEditorView
.
extend
({
tagName
:
'div'
,
events
:
{
...
...
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