aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-24 00:51:40 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-24 00:51:40 +0000
commit01f78a2febf84d2f502c115604f56668e869ae19 (patch)
treecce6876feef4643749ea61483782af2e572185ee
parent45387067c243e86d5f214abb44482f75dd257161 (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
-rw-r--r--admin/template/goto/user_list.tpl14
-rw-r--r--template/yoga/theme/Sylvia/theme.css4
2 files changed, 17 insertions, 1 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>
+
diff --git a/template/yoga/theme/Sylvia/theme.css b/template/yoga/theme/Sylvia/theme.css
index 8d70d9ecc..61cad49bc 100644
--- a/template/yoga/theme/Sylvia/theme.css
+++ b/template/yoga/theme/Sylvia/theme.css
@@ -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; } \ No newline at end of file
+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;} \ No newline at end of file