Lines 4-22
Link Here
|
4 |
|
4 |
|
5 |
<script type="text/javascript"> |
5 |
<script type="text/javascript"> |
6 |
$( document ).ready(function() { |
6 |
$( document ).ready(function() { |
7 |
$.ajax({ |
|
|
8 |
//This will retrieve the contents of the folder if the folder is configured as 'browsable' |
9 |
url: AUDIO_ALERT_PATH, |
10 |
success: function (data) { |
11 |
$("#fileNames").html('<ul>'); |
12 |
//List all png or jpg or gif file names in the page |
13 |
$(data).find('a:contains("ogg")').each(function () { |
14 |
var filename = this.href.split('/').pop(); |
15 |
$('#koha-sounds').append($('<option>', { value : filename }).text(filename)); |
16 |
}); |
17 |
} |
18 |
}); |
19 |
|
20 |
$('#koha-sounds').on('change', function() { |
7 |
$('#koha-sounds').on('change', function() { |
21 |
$('#sound').val( this.value ); |
8 |
$('#sound').val( this.value ); |
22 |
}); |
9 |
}); |
Lines 72-77
$( document ).ready(function() {
Link Here
|
72 |
|
59 |
|
73 |
<select id="koha-sounds"> |
60 |
<select id="koha-sounds"> |
74 |
<option value="">Select built-in sound</option> |
61 |
<option value="">Select built-in sound</option> |
|
|
62 |
<option value="beep.ogg">beep.ogg</option> |
63 |
<option value="call.ogg">call.ogg</option> |
64 |
<option value="critical.ogg">critical.ogg</option> |
65 |
<option value="device_connect.ogg">device_connect.ogg</option> |
66 |
<option value="device_disconnect.ogg">device_disconnect.ogg</option> |
67 |
<option value="ending.ogg">ending.ogg</option> |
68 |
<option value="fail.ogg">fail.ogg</option> |
69 |
<option value="IM_notification.ogg">IM_notification.ogg</option> |
70 |
<option value="incoming_call.ogg">incoming_call.ogg</option> |
71 |
<option value="loading.ogg">loading.ogg</option> |
72 |
<option value="loading_2.ogg">loading_2.ogg</option> |
73 |
<option value="maximize.ogg">maximize.ogg</option> |
74 |
<option value="minimize.ogg">minimize.ogg</option> |
75 |
<option value="new_mail_notification.ogg">new_mail_notification.ogg</option> |
76 |
<option value="opening.ogg">opening.ogg</option> |
77 |
<option value="panic.ogg">panic.ogg</option> |
78 |
<option value="popup.ogg">popup.ogg</option> |
79 |
<option value="warning.ogg">warning.ogg</option> |
75 |
</select> |
80 |
</select> |
76 |
|
81 |
|
77 |
<button id="save-alert" type="submit" class="btn"><i class="icon-hdd"></i> Save alert</button> |
82 |
<button id="save-alert" type="submit" class="btn"><i class="icon-hdd"></i> Save alert</button> |
78 |
- |
|
|