Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Bourgeat
thundermodo
Commits
8f1671c1
Commit
8f1671c1
authored
Apr 18, 2014
by
Antonin Delpeuch
Browse files
Added a description of the plugin
parent
004c9fa1
Changes
3
Hide whitespace changes
Inline
Side-by-side
chrome/content/mod-buttons.xul
View file @
8f1671c1
...
...
@@ -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.on
Reject(event
);"
/>
<menuitem
label=
"Refuser"
/>
<menuitem
label=
"Publier"
oncommand=
"ToolbarEvents.on
Publish(event
);"
/>
<menuitem
label=
"Transmettre"
oncommand=
"ToolbarEvents.onAc
cept(event
);"
/>
<menuitem
label=
"Forum"
/>
<menuitem
label=
"Ignorer"
oncommand=
"ToolbarEvents.on
Action('ignorer'
);"
/>
<menuitem
label=
"Refuser"
oncommand=
"ToolbarEvents.onAction('refuser');"
/>
<menuitem
label=
"Publier"
oncommand=
"ToolbarEvents.on
Action('publier'
);"
/>
<menuitem
label=
"Transmettre"
oncommand=
"ToolbarEvents.onAc
tion('transmettre'
);"
/>
<menuitem
label=
"Forum"
oncommand=
"ToolbarEvents.onAction('forum');"
/>
</menupopup>
</button>
</
toolbar
button>
</toolbar>
</overlay>
chrome/content/toolbar-events.js.in
View file @
8f1671c1
...
...
@@ -41,7 +41,7 @@ var ToolbarEvents = {
return;
var modButton = document.getElementById("hdrModButton");
if(!
acceptButton && !reject
Button)
if(!
mod
Button)
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 != '')
{
...
...
install.rdf
View file @
8f1671c1
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment