Changes between Version 9 and Version 10 of QuietPlugin


Ignore:
Timestamp:
Dec 16, 2011, 10:38:58 PM (12 years ago)
Author:
Rob Guttman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QuietPlugin

    v9 v10  
    3737    }}}
    3838
     39 There are a few additional optional configurations - see below.
     40
    3941 4. Add the {{{QUIET_MODE}}} permission to users or groups as appropriate on the Admin > Permissions page.
    4042
     
    6163 * I want to make a minor fix to a ticket's description that doesn't call for yet another email to be sent - enter quiet mode!
    6264 * I'm triaging many tickets in a [wiki:QueuesPlugin Queue report] with new positions using [wiki:GridModifyPlugin GridModify] and I don't want an email sent for each change.
     65 * I'm managing dependencies using the [wiki:AnalyzePlugin Analyze plugin] and don't want to inundate the team with emails of its fixes.
     66
     67=== Trigger quiet mode ===
     68To help you remember to enter quiet mode for the above use cases (or similar ones), you can create trigger rules on DOM elements that will prompt you to enter or leave quiet mode (if you're not already in that state):
     69{{{
     70[quiet]
     711.selector = #analyzebutton
     721.action = enter
     73
     742.selector = #batchmod_submit
     752.action = enter
     762.submit = true
     77
     783.selector = #propertyform[action*=ticket] .buttons input[name=submit]
     793.action = leave
     803.only_if = #comment:first=.+
     813.submit = true
     82}}}
     83
     84The above example defines three trigger rules explained as follows:
     85 1. When the "Analyze.." button is clicked, prompt to enter quiet mode.
     86 1. When the "Batch Modify" button is clicked, prompt to enter quiet mode (and prevent the submission - but then they can submit again).
     87 1. When the "Batch Modify" button is clicked ''and'' there's some text in the comment field, then prompt to enter quiet mode (and prevent the submission - but then they can submit again).
     88
     89The {{{only_if}}} option can either be just a CSS selector or also include an expected regex value (e.g., the {{{=.+}}} above).  If just a selector, then the selector must exist.  If also an expected rege value, then the selected item's jQuery {{{val()}}} must match the expected value.
    6390
    6491== Recent Changes ==