mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 02:33:02 +02:00
- 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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user