Changeset 6076


Ignore:
Timestamp:
Jul 31, 2012, 11:03:27 AM (11 years ago)
Author:
Nicklas Nordborg
Message:

Merged patch release 3.1.2 to the trunk.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/core/net/sf/basedb/core/Job.java

    r5595 r6076  
    946946  /**
    947947    Set the progress of the job. The job must be in the {@link Status#EXECUTING} or
    948     {@link Status#PREPARED} status.
     948    {@link Status#PREPARED} status. -1 can be used as a special value to indicate that
     949    it is not known how far the job has progressed.
    949950    @param percentComplete The number of percent completed
    950951    @param statusMessage A message
     
    952953      write permission of the job isn't in the <code>EXECUTING</code> status
    953954    @throws InvalidDataException If the status message is too long or the
    954       percentage value isn't between 0 and 100
     955      percentage value isn't between -1 and 100
    955956  */
    956957  public void setProgress(int percentComplete, String statusMessage)
     
    962963      throw new PermissionDeniedException("Cannot set progress for a job with status '"+getStatus()+"': "+toString());
    963964    }
    964     if (percentComplete < 0 || percentComplete > 100)
    965     {
    966       throw new NumberOutOfRangeException("percentComplete", percentComplete, 0, 100);
     965    if (percentComplete < -1 || percentComplete > 100)
     966    {
     967      throw new NumberOutOfRangeException("percentComplete", percentComplete, -1, 100);
    967968    }
    968969    JobData data = getData();
  • trunk/src/core/net/sf/basedb/core/Project.java

    r6058 r6076  
    245245  {
    246246    int projectPermission = getSessionControl().getProjectPermission(this);
    247     granted |= projectPermission & Permission.grant(Permission.READ, Permission.USE);
     247    granted |= projectPermission;
    248248    super.initPermissions(granted, denied);
    249249  }
  • trunk/www/biomaterials/bioplates/wells/list_biowells.jsp

    r6041 r6076  
    268268        id="bioMaterial.name"
    269269        property="$mbm.name"
     270        exportproperty="bioMaterial.name"
    270271        datatype="string"
    271272        title="[Biomtrl] Name"
     
    277278        id="bioMaterial.description"
    278279        property="$mbm.description"
     280        exportproperty="bioMaterial.description"
    279281        datatype="string"
    280282        title="[Biomtrl] Description"
     
    286288        id="bioMaterial.entryDate"
    287289        property="$evt.entryDate"
     290        exportproperty="bioMaterial.creationEvent.entryDate"
    288291        datatype="date"
    289292        title="[Biomtrl] Registered"
  • trunk/www/common/overview/info.jsp

    r6052 r6076  
    5353  import="net.sf.basedb.clients.web.extensions.JspContext"
    5454  import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
     55  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
    5556  import="net.sf.basedb.util.Values"
    5657  import="net.sf.basedb.util.NestedIterator"
     58  import="net.sf.basedb.util.formatter.Formatter"
    5759  import="net.sf.basedb.util.overview.GenericOverview"
    5860  import="net.sf.basedb.util.overview.OverviewUtil"
     
    441443              {
    442444                Annotation a = snapshot.getAnnotation(dc);
    443                 String unitSymbol = a.hasUnit() ? "&nbsp;" + a.getUnitSymbol(null) : "";
    444                 AnnotationType at = at = snapshot.getAnnotationType(dc);
     445                AnnotationType at = snapshot.getAnnotationType(dc);
     446                Formatter formatter = FormatterFactory.getAnnotationFormatter(sc, a, null);
    445447                Annotatable annotationOwner = null;
    446448                try
     
    484486                    %>
    485487                  </tbl:cell>
    486                   <tbl:cell column="values"><%=Values.getString(a.getValues(null), ", ", true)%><%=unitSymbol%></tbl:cell>
     488                  <tbl:cell column="values"><%=Values.getString(a.getValues(null), ", ", true, formatter)%></tbl:cell>
    487489                  <tbl:cell column="edit"><base:icon image="edit.png" onclick="<%=editLink%>"
    488490                    tooltip="<%=editTooltip%>" visible="<%=editLink != null %>"/></tbl:cell>
  • trunk/www/include/styles/main.css

    r6057 r6076  
    570570  border-top: 1px solid #2288AA !important;
    571571  border-bottom: 1px solid #2288AA !important;
     572  transition: all 0.3s ease 0.1s;
     573  -moz-transition: all 0.3s ease 0.1s;
     574  -webkit-transition: all 0.3s ease 0.1s;
    572575}
    573576
  • trunk/www/include/styles/table.css

    r6021 r6076  
    181181.itemlist div.data > table > tbody.rows > tr
    182182{
     183  border-top: 1px dotted #A0A0A0;
    183184  border-bottom: 1px dotted #A0A0A0;
    184185}
  • trunk/www/my_base/projects/items/list_items.jsp

    r6040 r6076  
    340340                image="check_uncheck.png"
    341341                tooltip="Check/uncheck all"
    342                 onclick="Forms.checkUncheck(document.forms[formId])"
     342                onclick="Forms.checkUncheck(document.forms[formId], /item:/)"
    343343              /></tbl:header>
    344344            <tbl:header
  • trunk/www/views/items/list_items.jsp

    r6040 r6076  
    327327                image="check_uncheck.png"
    328328                tooltip="Check/uncheck all"
    329                 onclick="Forms.checkUncheck(document.forms[formId])"
     329                onclick="Forms.checkUncheck(document.forms[formId], /item:/)"
    330330              /></tbl:header>
    331331            <tbl:header
  • trunk/www/views/trashcan/list_trash.jsp

    r6040 r6076  
    279279                image="check_uncheck.png"
    280280                tooltip="Check/uncheck all"
    281                 onclick="Forms.checkUncheck(document.forms[formId])"
     281                onclick="Forms.checkUncheck(document.forms[formId], /item:/)"
    282282              /></tbl:header>
    283283            <tbl:header
Note: See TracChangeset for help on using the changeset viewer.