Koha::AudioAlerts->fix_precedences();
}
-$template->param( AudioAlerts => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
+$template->param( AudioAlertsPage => 1, audio_alerts => scalar Koha::AudioAlerts->search() );
output_html_with_http_headers $cgi, $cookie, $template->output;
</script>
[% END %]
-[% IF Koha.Preference('AudioAlerts') || AudioAlerts %]
+[% IF Koha.Preference('AudioAlerts') || AudioAlertsPage %]
<script type="text/javascript">
//<![CDATA[
var AUDIO_ALERT_PATH = '[% interface %]/[% theme %]/sound/';
<li>Locate the "Add new alert" form.</li>
<li>
Enter a selector in the "selector" input, you can see documentation on jQuery selectors <a href="http://api.jquery.com/category/selectors/">here</a>.
- For example, if you use the selector "#circ_impossible" your selected sound will be trigger when a checkout for a patron is not possible ( such as the barcode not being found ).
+ For example, if you use the selector "#circ_impossible" your selected sound will be triggered when a checkout for a patron is not possible (such as the barcode not being found).
<li>Enter a sound to be played, you can either select a built-in Koha sound using the pulldown selector, or you can enter a full URL to a sound file on another server.</li>
<li>At this point, you can preview your sound by clicking the "Play sound" button</li>
<li>Click "Save alert" and your done!</li>