Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
install_requires=[
'cmstoolbox',
'more-itertools<6.0.0',
'cherrypy<18.0.0',
'mako',
'numpy>=1.6.1',
Expand Down
2 changes: 1 addition & 1 deletion workflowwebtools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
:author: Daniel Abercrombie <dabercro@mit.edu>
"""

__version__ = '0.9.3'
__version__ = '0.9.4'

__all__ = []
10 changes: 8 additions & 2 deletions workflowwebtools/web/static/js/submit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
var allHeader = "All Steps (use this or fill all others)";

function normalize (s) {
return s.replace(/^_+/, "");
return s.replace(/__\d*$/, ""). // Remove the counter for separating radios
replace(/^_+/, ""); // Remove leading "_". Don't remember what those are from.
}

function printSiteLists (method, params) {
Expand Down Expand Up @@ -107,6 +108,8 @@ function makeTable (option, params) {
else
addParamTable().style.margin = "15px 0px 15px 0px";

counter = 0;

$(".paramtable").each(function () {
var paramtable = this;
option.opts.forEach(function (opt) {
Expand All @@ -117,7 +120,7 @@ function makeTable (option, params) {
optDiv.appendChild(document.createTextNode(" " + value + " "));
var radio = optDiv.appendChild(document.createElement("input"));
radio.type = "radio";
radio.name = opt.name;
radio.name = opt.name + "__" + counter;
radio.value = value;
radio.ondblclick = function() {
this.checked = false;
Expand All @@ -133,6 +136,9 @@ function makeTable (option, params) {
input.type = "text";
input.name = text;
});

// Increment counter so that radio buttons are split
counter++;
});
};

Expand Down