small javascript and css simplification
git-svn-id: http://piwigo.org/svn/trunk@7852 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
b5485d3210
commit
8e25506673
5 changed files with 50 additions and 38 deletions
|
|
@ -54,9 +54,35 @@
|
|||
</table>
|
||||
|
||||
<p>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
jQuery("#checkAllLink").click(function () {
|
||||
jQuery("#c13y input[type=checkbox]").attr('checked', true);
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery("#uncheckAllLink").click(function () {
|
||||
jQuery("#c13y input[type=checkbox]").attr('checked', false);
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
function DeselectAll( formulaire )
|
||||
{
|
||||
var elts = formulaire.elements;
|
||||
for(var i=0; i <elts.length; i++)
|
||||
{
|
||||
if (elts[i].type=='checkbox')
|
||||
elts[i].checked = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
{if $c13y_show_submit_ignore}
|
||||
<a href="#" onclick="SelectAll(document.getElementById('c13y')); return false;">{'Check all'|@translate}</a>
|
||||
/ <a href="#" onclick="DeselectAll(document.getElementById('c13y')); return false;">{'Uncheck all'|@translate}</a>
|
||||
<a href="#" id="checkAllLink">{'Check all'|@translate}</a>
|
||||
/ <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a>
|
||||
{/if}
|
||||
{if isset($c13y_do_check)}
|
||||
/ <a href="#" onclick="DeselectAll(document.getElementById('c13y'));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,22 @@
|
|||
|
||||
{include file='include/autosize.inc.tpl'}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
jQuery("#checkAllLink").click(function () {
|
||||
jQuery("#notification_by_mail input[type=checkbox]").attr('checked', true);
|
||||
return false;
|
||||
});
|
||||
|
||||
jQuery("#uncheckAllLink").click(function () {
|
||||
jQuery("#notification_by_mail input[type=checkbox]").attr('checked', false);
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<div class="titrePage">
|
||||
<h2>{'Send mail to users'|@translate} {$TABSHEET_TITLE}</h2>
|
||||
|
|
@ -97,8 +114,8 @@
|
|||
{/foreach}
|
||||
</table>
|
||||
<p>
|
||||
<a href="#" onclick="SelectAll(document.getElementById('notification_by_mail')); return false;">{'Check all'|@translate}</a>
|
||||
/ <a href="#" onclick="DeselectAll(document.getElementById('notification_by_mail')); return false;">{'Uncheck all'|@translate}</a>
|
||||
<a href="#" id="checkAllLink">{'Check all'|@translate}</a>
|
||||
/ <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a>
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue