Skip to content
Snippets Groups Projects
Commit 4d638192 authored by Bob Mottram's avatar Bob Mottram
Browse files

Ensure correct fieldset endings

parent 47f684b0
No related branches found
No related tags found
No related merge requests found
......@@ -405,6 +405,9 @@ function get_app_categories {
}
function web_admin_create_add_apps_category {
# number of apps added
add_apps_ctr=0
# This counter is used to enforce 4 icon rows
available_apps_ctr=0
......@@ -575,6 +578,7 @@ function web_admin_create_add_apps_category {
#fi
available_apps_ctr=$((available_apps_ctr+1))
add_apps_ctr=$((add_apps_ctr+1))
# four columns per row
if [ $available_apps_ctr -eq 4 ]; then
......@@ -599,8 +603,11 @@ function web_admin_create_add_apps_category {
echo ' </div>';
echo ' </div>'; } >> "$appslist_add_filename"
done
{ echo ' </div>';
echo ' </fieldset>'; } >> "$appslist_add_filename"
echo ' </div>' >> "$appslist_add_filename"
fi
if [ ${add_apps_ctr} -gt 0 ]; then
echo ' </fieldset>' >> "$appslist_add_filename"
else
# remove the header for this category
sed -i "/$apps_header_str/d" "$appslist_add_filename"
......@@ -661,6 +668,9 @@ function web_admin_create_add_apps {
}
function web_admin_create_installed_apps_category {
# number of apps in the category
apps_in_category_ctr=0
# This counter is used to enforce 4 icon rows
installed_apps_ctr=0
......@@ -936,6 +946,7 @@ function web_admin_create_installed_apps_category {
installed_apps_ctr=$((installed_apps_ctr+1))
total_apps_ctr=$((total_apps_ctr+1))
apps_in_category_ctr=$((apps_in_category_ctr+1))
# four columns per row
if [ $installed_apps_ctr -eq 4 ]; then
......@@ -958,8 +969,11 @@ function web_admin_create_installed_apps_category {
echo ' </div>';
echo ' </div>'; } >> "$appslist_filename"
done
{ echo ' </div>';
echo ' </fieldset>'; } >> "$appslist_filename"
echo ' </div>' >> "$appslist_filename"
fi
if [ ${apps_in_category_ctr} -gt 0 ]; then
echo ' </fieldset>' >> "$appslist_filename"
else
# remove the header for this category
sed -i "/$apps_header_str/d" "$appslist_filename"
......
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