New Content - Implemented Decorate the new Inventory interface

slyz

Developer
RequestEditorKit.decorateInventory() adds a few useful links to the inventory page (for sushi rolling and zapping). It looks like it needs to be updated after the inventory change.

Here is the relevant part of RequestEditorKit.decorateInventory()
PHP:
StringUtilities.globalStringDelete(
	buffer,
	"<td width=30></td>" );
StringUtilities.singleStringReplace(
	buffer,
	"  </font></td></tr>",
	links.toString() + "</font></td></tr>" );

Here is the HTML before:
PHP:
// <table width=100%><tr><td width=30></td><td class=small align=center><font size=2>[<a href="craft.php">craft stuff</a>]  [<a href="sellstuff.php">sell stuff</a>]  </font></td><td width=30></td></tr></table>
the HTML now, (not everything, just the part that doesn't change when advanced filtering is turned on or not):
PHP:
// <td width=20 rowspan=2></td><td class=small align=center valign=top rowspan=2><font size=2>[<a href="craft.php">craft stuff</a>]   [<a href="sellstuff.php">sell stuff</a>]<br /></font></td><td width=20 rowspan=2></td>

I know squat about HTML. How do I add links without breaking things? Maybe by adding them on a second line?
 
Top