diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-09-24 00:51:40 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-09-24 00:51:40 +0000 |
commit | 01f78a2febf84d2f502c115604f56668e869ae19 (patch) | |
tree | cce6876feef4643749ea61483782af2e572185ee /admin/template/goto | |
parent | 45387067c243e86d5f214abb44482f75dd257161 (diff) |
- user_list submit form without selected user shows javascript alert (now working; previously had bad XPath selector)
- put #debug css rule in Sylvia/theme.css (I removed it in my prev commit from default-layout)
git-svn-id: http://piwigo.org/svn/trunk@2578 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/template/goto/user_list.tpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/admin/template/goto/user_list.tpl b/admin/template/goto/user_list.tpl index c26e5dbbf..aa4e369dc 100644 --- a/admin/template/goto/user_list.tpl +++ b/admin/template/goto/user_list.tpl @@ -314,3 +314,17 @@ </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> + |