summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/templates
diff options
context:
space:
mode:
authorSimon Rettberg2016-07-15 19:05:43 +0200
committerSimon Rettberg2016-07-15 19:05:43 +0200
commit6cb497bc2778eb4ebc8fd5ef87f7b2cb0949cab5 (patch)
tree4f2ee9b0ef7dddab27bcac9e864b23e1da4f7230 /modules-available/dozmod/templates
parentMerging some refactoring + new filter functionality. (diff)
downloadslx-admin-6cb497bc2778eb4ebc8fd5ef87f7b2cb0949cab5.tar.gz
slx-admin-6cb497bc2778eb4ebc8fd5ef87f7b2cb0949cab5.tar.xz
slx-admin-6cb497bc2778eb4ebc8fd5ef87f7b2cb0949cab5.zip
[dozmod] Error feedback on mailtest; check-all for image-delete; longer timeouts for dozmod calls
Diffstat (limited to 'modules-available/dozmod/templates')
-rw-r--r--modules-available/dozmod/templates/images-delete.html37
1 files changed, 34 insertions, 3 deletions
diff --git a/modules-available/dozmod/templates/images-delete.html b/modules-available/dozmod/templates/images-delete.html
index c4cbfd34..99ffb85d 100644
--- a/modules-available/dozmod/templates/images-delete.html
+++ b/modules-available/dozmod/templates/images-delete.html
@@ -16,9 +16,12 @@
<th>{{lang_image}}</th>
<th>{{lang_version}}</th>
<th>{{lang_owner}}</th>
- <th><span class="glyphicon glyphicon-upload" title="{{lang_hasNewer}}"></th>
+ <th><span class="glyphicon glyphicon-upload" title="{{lang_hasNewer}}"></span></th>
<th>{{lang_size}}</th>
- <th><span class="glyphicon glyphicon-trash" title="{{lang_delete}}"></span></th>
+ <th>
+ <input id="del-all" type="checkbox" onclick="slxChangeAll()">
+ <span class="glyphicon glyphicon-trash" title="{{lang_delete}}"></span>
+ </th>
</tr>
</thead>
<tbody>
@@ -29,7 +32,7 @@
<td class="text-left slx-nowrap"><a href="mailto:{{email}}">{{lastname}}, {{firstname}}</a></td>
<td class="text-left slx-nowrap"><span class="glyphicon {{hasNewerClass}}"></span></td>
<td class="text-right slx-nowrap">{{filesize}}</td>
- <td><input name="images[{{imageversionid}}]" type="checkbox" checked="checked"></td>
+ <td><input class="del-check" name="images[{{imageversionid}}]" type="checkbox" {{checked}}></td>
</tr>
{{/images}}
</tbody>
@@ -54,4 +57,32 @@ function slxPostdel() {
return false;
}
+function slxChangeAll()
+{
+ if ($('#del-all').is(':checked')) {
+ $('.del-check').prop('checked', true);
+ } else {
+ $('.del-check').prop('checked', false);
+ }
+}
+
+function slxChangeSingle()
+{
+ var ons = 0;
+ var offs = 0;
+ $('.del-check').each(function(idx, elem) {
+ if (elem.checked) {
+ ons++;
+ } else {
+ offs++;
+ }
+ });
+ $('#del-all').prop('checked', offs === 0).prop('indeterminate', ons > 0 && offs > 0);
+}
+
+document.addEventListener("DOMContentLoaded", function() {
+ $('.del-check').click(slxChangeSingle);
+ slxChangeSingle();
+}, false);
+
--> </script> \ No newline at end of file