Changeset 1850


Ignore:
Timestamp:
Feb 18, 2013, 11:51:07 AM (7 years ago)
Author:
olle
Message:

Refs #461. Java class/file ScanBQuarterMonthReportServlet.java in reggie/src/net/sf/basedb/reggie/servlet/ updated in private method String createCaseSummaryButton(DbControl dc, String caseName) to generate code for an HTML link, instead of a button, in order for the mouse cursor to indicate that the element could be clicked on. The "onerror" code in the icon "img" tag was removed, since it wasn't parsed correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/ScanBQuarterMonthReportServlet.java

    r1848 r1850  
    591591    String sessionId = dc.getSessionControl().getId();
    592592    // <div class="button" onclick="location.href='/base3/extensions/reggie.jar/case_summary.jsp?ID=5e2fb4c3c4a02d23&caseName=7700001'" tabindex="0" onkeypress="Main.handleFocusedKeypress(event)" title="Reggie: Show summary of case #7700001"><table><tr><td><img src="/base3/extensions/reggie.jar/images/case_summary.png" onerror="this.style.display='none'"></td><td><span style="padding: 0px 2px 0px 2px;">Case summary</span></td></tr></table></div>
    593     String htmlStr ="<div class=\"button\" onclick=\"location.href='case_summary.jsp?ID=" + sessionId + "&caseName=" + caseName + "'\" tabindex=\"0\" onkeypress=\"Main.handleFocusedKeypress(event)\" title=\"Reggie: Show summary of case #" + caseName + "\"><img src=\"images/case_summary.png\" onerror=\"this.style.display='none'\">&nbsp;" + caseName + "</div>";
    594     return htmlStr;
     593    // <span id="printButton" class="link" onclick="goPrint()"><img src="images/print.png" style="padding-right: 0.5em;">Print version&hellip;</span>
     594    //String htmlStr ="<div class=\"link\" onclick=\"location.href='case_summary.jsp?ID=" + sessionId + "&caseName=" + caseName + "'\" tabindex=\"0\" onkeypress=\"Main.handleFocusedKeypress(event)\" title=\"Reggie: Show summary of case #" + caseName + "\"><img src=\"images/case_summary.png\" onerror=\"this.style.display='none'\">&nbsp;" + caseName + "</div>";
     595    String htmlStr ="<div class=\"link\" onclick=\"location.href='case_summary.jsp?ID=" + sessionId + "&caseName=" + caseName + "'\" tabindex=\"0\" onkeypress=\"Main.handleFocusedKeypress(event)\" title=\"Reggie: Show summary of case #" + caseName + "\"><img src=\"images/case_summary.png\">&nbsp;" + caseName + "</div>";
     596      return htmlStr;
    595597  }
    596598
Note: See TracChangeset for help on using the changeset viewer.