app/frontend/entrypoints/submissions.js
File submissions.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Submission workflow jQuery Plugin...
(function (window, $) {
"use strict";
var methods = {
Function addOrderHandler
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var addOrderHandler = function (_event) {
// Loads this order's parameters into thewindow.SCAPE.submission object...
$("#order-parameters")
.find("select, input")
.each(function () {
Function saveOrderHandler
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var saveOrderHandler = function (_event) {
var currentPane = $(this).submission("currentPane");
// refactor this little lot!
window.SCAPE.submission.project_name = currentPane.find(".submission_project_name").val();
window.SCAPE.submission.asset_group_id = currentPane.find(".submission_asset_group_id").val();