'use strict';
require('css/registrations.css');

var ko = require('knockout');
var $ = require('jquery');

var $osf = require('js/osfHelpers');
var RegistrationManager = require('js/registrationUtils').RegistrationManager;

var ctx = window.contextVars;
var node = window.contextVars.node;

$(document).ready(function() {

    $('#registrationsTabs').tab();
    $('#registrationsTabs a').click(function (e) {
        e.preventDefault();
        $(this).tab('show');
    });

    var draftManager = new RegistrationManager(node, '#draftRegistrationScope', {
        list: node.urls.api + 'draft/',
	submit: node.urls.api + 'draft/{draft_pk}/submit/',
        get: node.urls.api + 'draft/{draft_pk}/',
        delete: node.urls.api + 'draft/{draft_pk}/',
        schemas: '/api/v1/project/schema/',
        edit: node.urls.web + 'draft/{draft_pk}/'
    });
    draftManager.init();

    $('#registerNode').click(function(event) {
        event.preventDefault();
        draftManager.beforeCreateDraft();        
    });
});

@@ -594,60 +594,78 @@
 /',%0A
-%09submit: node.urls.api + 'draft/%7Bdraft_pk%7D/submit/',
+        // TODO: uncomment when we support draft submission for review
 %0A   
@@ -669,18 +669,23 @@
         
-ge
+//submi
 t: node.
@@ -705,32 +705,39 @@
 raft/%7Bdraft_pk%7D/
+submit/
 ',%0A        delet

Remove unnescessary routes from registration parameters