Commit 8f1671c1 authored by Antonin Delpeuch's avatar Antonin Delpeuch
Browse files

Added a description of the plugin

parent 004c9fa1
......@@ -3,15 +3,15 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://moderation/content/toolbar-events.js" />
<toolbar id="header-view-toolbar">
<toolbarbutton type="menu" label="Modération" id="hdrModButton">
<toolbarbutton type="menu-button" label="Modération" id="hdrModButton">
<menupopup>
<menuitem label="Ignorer" oncommand="ToolbarEvents.onReject(event);" />
<menuitem label="Refuser" />
<menuitem label="Publier" oncommand="ToolbarEvents.onPublish(event);" />
<menuitem label="Transmettre" oncommand="ToolbarEvents.onAccept(event);" />
<menuitem label="Forum" />
<menuitem label="Ignorer" oncommand="ToolbarEvents.onAction('ignorer');" />
<menuitem label="Refuser" oncommand="ToolbarEvents.onAction('refuser');" />
<menuitem label="Publier" oncommand="ToolbarEvents.onAction('publier');" />
<menuitem label="Transmettre" oncommand="ToolbarEvents.onAction('transmettre');" />
<menuitem label="Forum" oncommand="ToolbarEvents.onAction('forum');" />
</menupopup>
</button>
</toolbarbutton>
</toolbar>
</overlay>
......@@ -41,7 +41,7 @@ var ToolbarEvents = {
return;
var modButton = document.getElementById("hdrModButton");
if(!acceptButton && !rejectButton)
if(!modButton)
return;
var subject = msg.mime2DecodedSubject;
......@@ -83,6 +83,13 @@ var ToolbarEvents = {
process.runAsync(["CLIPPER_USERNAME", action, cookie], 3);
},
onAction: function(action) {
if(ToolbarEvents.currentCookie != '')
{
ToolbarEvents.runCmd(action, ToolbarEvents.currentCookie);
}
},
onAccept: function() {
if(ToolbarEvents.currentCookie != '')
{
......
......@@ -5,6 +5,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>moderation@delpeuch.eu</em:id>
<em:description>Interface pour les outils de modération de listes à l'ENS</em:description>
<em:version>1.0</em:version>
<em:type>2</em:type>
<em:unpack>true</em:unpack>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment