Skip to content
Snippets Groups Projects
Commit 6b13f22c authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

remove option to create a new array in an existing graph

(but patches which already have multiple arrays in a graph will continue to work)
parent 45587416
No related branches found
No related tags found
No related merge requests found
...@@ -596,8 +596,12 @@ function populate_array_form(objects) { ...@@ -596,8 +596,12 @@ function populate_array_form(objects) {
opt.textContent = 'Array #' + (i+1); opt.textContent = 'Array #' + (i+1);
arrays_select.appendChild(opt); arrays_select.appendChild(opt);
} }
// Hide checkbutton for existing graph if this isn't a new array dialog // We're permanently hiding the checkbutton for creating a new array
if (!new_array_dialog) { // inside an existing graph. It's just a weird interface with very
// few benefits. However, patches that already have multiple arrays
// inside a graph will continue to work. (And if users really want
// this feature back it's easy to turn it back on.
if (!new_array_dialog || 1) { // to re-enable, remove the '|| 1'
document.getElementsByClassName('array_in_existing_graph')[0] document.getElementsByClassName('array_in_existing_graph')[0]
.classList.add('hidden'); .classList.add('hidden');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment