aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/template/yoga/admin/user_list.tpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/template/yoga/admin/user_list.tpl b/admin/template/yoga/admin/user_list.tpl
index 602576ef9..5ad163be8 100644
--- a/admin/template/yoga/admin/user_list.tpl
+++ b/admin/template/yoga/admin/user_list.tpl
@@ -307,3 +307,18 @@
</p>
</form>
+
+<script type="text/javascript">// <![CDATA[
+{literal}jQuery("form:last").submit( function() {
+ if ( jQuery("input[name=target][value=selection]:checked", this).length > 0 )
+ if ( jQuery("input[name=selection]:checked", this).length == 0)
+ {
+ alert( {/literal}"{'Select at least one user'|@translate|escape:javascript}"{literal} );
+ return false;
+ }
+ return true;
+}
+);{/literal}
+// ]]>
+</script>
+ \ No newline at end of file