From 0f394656c9202fd706894a6e0e737f4dc6d3b8c0 Mon Sep 17 00:00:00 2001 From: asadiqbal Date: Wed, 21 Oct 2015 20:50:28 +0500 Subject: [PATCH] SOL-1312 changes --- .../js/certificates/spec/views/certificate_editor_spec.js | 4 ++-- cms/static/js/certificates/views/certificate_editor.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cms/static/js/certificates/spec/views/certificate_editor_spec.js b/cms/static/js/certificates/spec/views/certificate_editor_spec.js index 1d2cd14790..43ac124b5e 100644 --- a/cms/static/js/certificates/spec/views/certificate_editor_spec.js +++ b/cms/static/js/certificates/spec/views/certificate_editor_spec.js @@ -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(); } diff --git a/cms/static/js/certificates/views/certificate_editor.js b/cms/static/js/certificates/views/certificate_editor.js index 486010b624..7e205c6d19 100644 --- a/cms/static/js/certificates/views/certificate_editor.js +++ b/cms/static/js/certificates/views/certificate_editor.js @@ -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: {