Options Menu Fix
Posted: Thu May 10, 2018 5:14 pm
Hi,
If the width of the last browse column is 0, the options menu is not visible in the browse form.
Options menu not visible, because it's always attached to the last browse column: Fix nuForm.js, function nuAddEditTabs()
Now:
After: determine the index of the last column, whose width is not 0. Assign it to the variable p.
Now:
After: Attach the options menu to the last browse column whose width is not zero.
After applying the fix:
If the width of the last browse column is 0, the options menu is not visible in the browse form.
Options menu not visible, because it's always attached to the last browse column: Fix nuForm.js, function nuAddEditTabs()
Now:
Code: Select all
for(var i = 0 ; i < w.browse_columns.length ; i++){
l = nuBrowseTitle(w.browse_columns, i, l);
}
Code: Select all
for(var i = 0 ; i < w.browse_columns.length ; i++){
l = nuBrowseTitle(w.browse_columns, i, l);
if (w.browse_columns[i].width != '0') {
p = i;
}
}
Code: Select all
nuOptions('nuBrowseTitle' + (w.browse_columns.length - 1), w.form_id, 'browse', w.global_access);
Code: Select all
nuOptions('nuBrowseTitle' + p, w.form_id, 'browse', w.global_access);
After applying the fix: