- 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
This commit is contained in:
rvelices
2008-09-24 00:51:40 +00:00
parent 45387067c2
commit 01f78a2feb
2 changed files with 17 additions and 1 deletions
+14
View File
@@ -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>