Changeset 7902


Ignore:
Timestamp:
Jan 21, 2021, 2:57:46 PM (2 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2239: Select columns in the dialog for adding members to an item list is not working properly

The problem was that menu.js and menu.css was not included on the page due to setting the page-type to "iframe". Updated the <head> taglib so that menu functionality is included on all page types except "include" (which should already have them).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/taglib/Head.java

    r7703 r7902  
    190190  {
    191191    LinkedHashSet<String> allStyles = new LinkedHashSet<String>();
    192     allStyles.add("main.css");
    193192    int pageType = page.getTypeCode();
    194     if (pageType == Page.PAGE_TYPE_DEFAULT) allStyles.add("menu.css");
     193    if (pageType != Page.PAGE_TYPE_INCLUDE)
     194    {
     195      allStyles.add("main.css");
     196      allStyles.add("menu.css");
     197    }
    195198    if (pageType == Page.PAGE_TYPE_POPUP)
    196199    {
    197       allStyles.add("menu.css");
    198200      allStyles.add("popup.css");
    199201    }
     
    245247    {
    246248      allScripts.add("main-2.js");
    247     }
    248     if (pageType == Page.PAGE_TYPE_DEFAULT)
    249     {
    250249      allScripts.add("menu.js");
    251250    }
    252251    if (pageType == Page.PAGE_TYPE_POPUP)
    253252    {
    254       allScripts.add("menu.js");
    255253      allScripts.add("popup.js");
    256254    }
Note: See TracChangeset for help on using the changeset viewer.