mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 21:44:06 +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>
|
||||
|
||||
|
||||
@@ -74,4 +74,6 @@ border-radius: 4px 4px; /* round corners with CSS3 compliant browsers */ }
|
||||
.content UL.thumbnails SPAN.wrap2:hover { color: #666;
|
||||
background-color: #111; border:1px solid #ff3363; /* thumbnails border color when mouse cursor is over it */ }
|
||||
A, INPUT.rateButton { color: #f70; outline: none; border: none;}
|
||||
A:hover, A:active { color: #f33; border: 0; outline: none; }
|
||||
A:hover, A:active { color: #f33; border: 0; outline: none; }
|
||||
|
||||
#debug { margin: 15px 15px 5px 248px; font-size:12px; clear: both; word-wrap:break-word;}
|
||||
Reference in New Issue
Block a user