From e1ddac18a7d48e783faf5ab27737913500bc6e8b Mon Sep 17 00:00:00 2001 From: guerler Date: Mon, 2 Mar 2015 14:29:44 -0500 Subject: [PATCH] Forms: Remove spaces, fix comments --- client/galaxy/scripts/mvc/form/form-select-content.js | 9 +++++---- client/galaxy/scripts/mvc/tools/tools-form-base.js | 2 +- client/galaxy/scripts/mvc/tools/tools-form-workflow.js | 2 +- client/galaxy/scripts/mvc/tools/tools-form.js | 2 +- static/scripts/mvc/form/form-select-content.js | 9 +++++---- static/scripts/mvc/tools/tools-form-base.js | 2 +- static/scripts/mvc/tools/tools-form-workflow.js | 2 +- static/scripts/mvc/tools/tools-form.js | 2 +- 8 files changed, 16 insertions(+), 14 deletions(-) diff --git a/client/galaxy/scripts/mvc/form/form-select-content.js b/client/galaxy/scripts/mvc/form/form-select-content.js index 28ade6a3a50..6169c476e8e 100644 --- a/client/galaxy/scripts/mvc/form/form-select-content.js +++ b/client/galaxy/scripts/mvc/form/form-select-content.js @@ -2,9 +2,10 @@ define(['utils/utils', 'mvc/ui/ui-misc', 'mvc/ui/ui-tabs', 'mvc/tools/tools-template'], function(Utils, Ui, Tabs, ToolTemplate) { - +// track current history elements history = {}; +// hda/hdca content selector ui element var View = Backbone.View.extend({ // initialize initialize : function(app, options) { @@ -251,12 +252,12 @@ var View = Backbone.View.extend({ if (id_list === null) { return null; } - + // transform into an array if (!(id_list instanceof Array)) { id_list = [id_list]; } - + // check if value exists if (id_list.length === 0) { return null; @@ -331,7 +332,7 @@ var View = Backbone.View.extend({ } return false; }, - + /** Batch message template */ template_batch: function() { return '
' + diff --git a/client/galaxy/scripts/mvc/tools/tools-form-base.js b/client/galaxy/scripts/mvc/tools/tools-form-base.js index cbfb0ebedf2..82036d177f2 100644 --- a/client/galaxy/scripts/mvc/tools/tools-form-base.js +++ b/client/galaxy/scripts/mvc/tools/tools-form-base.js @@ -1,5 +1,5 @@ /** - This is the base class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the base class of the tool form plugin. This class is e.g. inherited by the regular and the workflow tool form. */ define(['utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view', 'mvc/tools/tools-template', 'mvc/citation/citation-model', 'mvc/citation/citation-view'], diff --git a/client/galaxy/scripts/mvc/tools/tools-form-workflow.js b/client/galaxy/scripts/mvc/tools/tools-form-workflow.js index 9b9e1db1fd1..416a6fbac67 100644 --- a/client/galaxy/scripts/mvc/tools/tools-form-workflow.js +++ b/client/galaxy/scripts/mvc/tools/tools-form-workflow.js @@ -1,5 +1,5 @@ /** - This is the main class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the workflow tool form. */ define(['utils/utils', 'mvc/tools/tools-form-base'], function(Utils, ToolFormBase) { diff --git a/client/galaxy/scripts/mvc/tools/tools-form.js b/client/galaxy/scripts/mvc/tools/tools-form.js index 2e94723cd3d..ceca4af4e16 100644 --- a/client/galaxy/scripts/mvc/tools/tools-form.js +++ b/client/galaxy/scripts/mvc/tools/tools-form.js @@ -1,5 +1,5 @@ /** - This is the main class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the regular tool form. */ define(['utils/utils', 'mvc/ui/ui-misc', 'mvc/tools/tools-form-base', 'mvc/tools/tools-jobs'], function(Utils, Ui, ToolFormBase, ToolJobs) { diff --git a/static/scripts/mvc/form/form-select-content.js b/static/scripts/mvc/form/form-select-content.js index 28ade6a3a50..6169c476e8e 100644 --- a/static/scripts/mvc/form/form-select-content.js +++ b/static/scripts/mvc/form/form-select-content.js @@ -2,9 +2,10 @@ define(['utils/utils', 'mvc/ui/ui-misc', 'mvc/ui/ui-tabs', 'mvc/tools/tools-template'], function(Utils, Ui, Tabs, ToolTemplate) { - +// track current history elements history = {}; +// hda/hdca content selector ui element var View = Backbone.View.extend({ // initialize initialize : function(app, options) { @@ -251,12 +252,12 @@ var View = Backbone.View.extend({ if (id_list === null) { return null; } - + // transform into an array if (!(id_list instanceof Array)) { id_list = [id_list]; } - + // check if value exists if (id_list.length === 0) { return null; @@ -331,7 +332,7 @@ var View = Backbone.View.extend({ } return false; }, - + /** Batch message template */ template_batch: function() { return '
' + diff --git a/static/scripts/mvc/tools/tools-form-base.js b/static/scripts/mvc/tools/tools-form-base.js index cbfb0ebedf2..82036d177f2 100644 --- a/static/scripts/mvc/tools/tools-form-base.js +++ b/static/scripts/mvc/tools/tools-form-base.js @@ -1,5 +1,5 @@ /** - This is the base class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the base class of the tool form plugin. This class is e.g. inherited by the regular and the workflow tool form. */ define(['utils/utils', 'utils/deferred', 'mvc/ui/ui-misc', 'mvc/form/form-view', 'mvc/tools/tools-template', 'mvc/citation/citation-model', 'mvc/citation/citation-view'], diff --git a/static/scripts/mvc/tools/tools-form-workflow.js b/static/scripts/mvc/tools/tools-form-workflow.js index 9b9e1db1fd1..416a6fbac67 100644 --- a/static/scripts/mvc/tools/tools-form-workflow.js +++ b/static/scripts/mvc/tools/tools-form-workflow.js @@ -1,5 +1,5 @@ /** - This is the main class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the workflow tool form. */ define(['utils/utils', 'mvc/tools/tools-form-base'], function(Utils, ToolFormBase) { diff --git a/static/scripts/mvc/tools/tools-form.js b/static/scripts/mvc/tools/tools-form.js index 2e94723cd3d..ceca4af4e16 100644 --- a/static/scripts/mvc/tools/tools-form.js +++ b/static/scripts/mvc/tools/tools-form.js @@ -1,5 +1,5 @@ /** - This is the main class of the tool form plugin. It is referenced as 'app' in all lower level modules. + This is the regular tool form. */ define(['utils/utils', 'mvc/ui/ui-misc', 'mvc/tools/tools-form-base', 'mvc/tools/tools-jobs'], function(Utils, Ui, ToolFormBase, ToolJobs) {