1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 00:45:47 +01:00

Use table tags in :addons and :downloads to better support :yank.

This commit is contained in:
Kris Maglione
2011-01-26 03:36:34 -05:00
parent 102fb67eff
commit 0a7f399bf7
18 changed files with 890 additions and 853 deletions

View File

@@ -147,20 +147,19 @@ var Addon = Class("Addon", {
};
XML.ignoreWhitespace = true;
util.xmlToDom(
<li highlight="Addon" key="row" xmlns:dactyl={NS} xmlns={XHTML}>
<span highlight="AddonName" key="name">
</span>
<span highlight="AddonVersion" key="version"/>
<span highlight="AddonStatus" key="status"/>
<span highlight="AddonButtons Buttons">
<tr highlight="Addon" key="row" xmlns:dactyl={NS} xmlns={XHTML}>
<td highlight="AddonName" key="name"/>
<td highlight="AddonVersion" key="version"/>
<td highlight="AddonStatus" key="status"/>
<td highlight="AddonButtons Buttons">
<a highlight="Button" key="enable">On&#xa0;</a>
<a highlight="Button" key="disable">Off</a>
<a highlight="Button" key="delete">Del</a>
<a highlight="Button" key="update">Upd</a>
<a highlight="Button" key="options">Opt</a>
</span>
<span highlight="AddonDescription" key="description"/>
</li>,
</td>
<td highlight="AddonDescription" key="description"/>
</tr>,
this.list.document, this.nodes);
this.update();
@@ -266,15 +265,15 @@ var AddonList = Class("AddonList", {
message: Class.memoize(function () {
XML.ignoreWhitespace = true;
util.xmlToDom(<ul highlight="Addons" key="list" xmlns={XHTML}>
<li highlight="AddonHead">
<span>Name</span>
<span>Version</span>
<span>Status</span>
<span/>
<span>Description</span>
</li>
</ul>, this.document, this.nodes);
util.xmlToDom(<table highlight="Addons" key="list" xmlns={XHTML}>
<tr highlight="AddonHead">
<td>Name</td>
<td>Version</td>
<td>Status</td>
<td/>
<td>Description</td>
</tr>
</table>, this.document, this.nodes);
return this.nodes.list;
}),
@@ -314,7 +313,7 @@ var AddonList = Class("AddonList", {
if (addon && addon.id in this.addons)
this.addons[addon.id].update();
if (this.ready)
this.modules.commandline.updateOutputHeight(false);
this.modules.mow.resize(false);
},
onDisabled: function (addon) { this.update(addon); },