Changeset 4852


Ignore:
Timestamp:
Mar 26, 2009, 1:16:36 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1277: Export button on Biowells list page leads to non-existing url

And made the export dialogue the same size as other export dialogs.

Location:
branches/2.11-stable/www/biomaterials/bioplates/wells
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.11-stable/www/biomaterials/bioplates/wells/index.jsp

    r4731 r4852  
    149149    cc.configureQuery(query, true);
    150150    cc.setQuery(query);
    151     redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+biowells";
     151    redirect = root + "/common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Export+biowells";
    152152  }
    153153  else if ("ExportItem".equals(cmd))
     
    155155    // Run an export plugin in single-item context
    156156    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    157     redirect = "../../common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+biowell";
     157    redirect = root + "/common/export/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Export+biowell";
    158158  }
    159159  else if ("ImportItems".equals(cmd))
     
    167167    cc.configureQuery(query, true);
    168168    cc.setQuery(query);
    169     redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+biowells";
     169    redirect = root + "/common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&title=Import+biowells";
    170170  }
    171171  else if ("ImportItem".equals(cmd))
     
    173173    // Run an import plugin in single-item context
    174174    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    175     redirect = "../../common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+biowell";
     175    redirect = root + "/common/import/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&title=Import+biowell";
    176176  }
    177177  else if ("RunListPlugin".equals(cmd))
     
    185185    cc.configureQuery(query, true);
    186186    cc.setQuery(query);
    187     redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&main_type=OTHER&title=Run+plugin";
     187    redirect = root + "/common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=LIST&main_type=OTHER&title=Run+plugin";
    188188  }
    189189  else if ("RunPlugin".equals(cmd))
     
    191191    // Run another plugin in single-item context
    192192    ItemContext cc = Base.getAndSetCurrentContext(sc, itemType, pageContext, defaultContext);
    193     redirect = "../../common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin";
     193    redirect = root + "/common/plugin/index.jsp?ID="+ID+"&cmd=SelectPlugin&item_type="+itemType.name()+"&context_type=ITEM&main_type=OTHER&title=Run+plugin";
    194194  }
    195195  else
  • branches/2.11-stable/www/biomaterials/bioplates/wells/list_biowells.jsp

    r4789 r4852  
    124124    function runPlugin(cmd)
    125125    {
    126       Table.submitToPopup(formId, cmd, 540, 460);
     126      Table.submitToPopup(formId, cmd, 740, 540);
    127127    }
    128128    function returnSelected()
Note: See TracChangeset for help on using the changeset viewer.