- 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>
+3 -1
View File
@@ -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;}