diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-09-04 00:57:55 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-09-04 00:57:55 +0000 |
commit | 4002f708e1b701a800b3d6968d12ab9a49c2d071 (patch) | |
tree | f5495a5c5b5b72d2a4c8c5d830bcb47cd02d2bd4 /admin | |
parent | 56517c7545428a9f655dd31c4bb3ae15a2fac223 (diff) |
- remove hello_world plugin (not working anymore)
- web service method images.add works only for admins now
- fix template-common js web service calls did not have the parameters url encoded
- improve admin user_list - submitting the form with no user selected triggers a javascript alert (had fun with jquery selectors)
git-svn-id: http://piwigo.org/svn/trunk@2496 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/template/yoga/admin/user_list.tpl | 15 |
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 |