Ignore:
Timestamp:
Nov 23, 2010, 2:50:41 PM (13 years ago)
Author:
rvelices
Message:

small javascript and css simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/notification_by_mail.tpl

    r6363 r7852  
    11
    22{include file='include/autosize.inc.tpl'}
     3{literal}
     4<script type="text/javascript">
     5jQuery(document).ready(function(){
     6
     7        jQuery("#checkAllLink").click(function () {
     8                jQuery("#notification_by_mail input[type=checkbox]").attr('checked', true);
     9                return false;
     10        });
     11
     12        jQuery("#uncheckAllLink").click(function () {
     13                jQuery("#notification_by_mail input[type=checkbox]").attr('checked', false);
     14                return false;
     15        });
     16
     17});
     18</script>
     19{/literal}
    320
    421<div class="titrePage">
     
    98115      </table>
    99116      <p>
    100           <a href="#" onclick="SelectAll(document.getElementById('notification_by_mail')); return false;">{'Check all'|@translate}</a>
    101         / <a href="#" onclick="DeselectAll(document.getElementById('notification_by_mail')); return false;">{'Uncheck all'|@translate}</a>
     117          <a href="#" id="checkAllLink">{'Check all'|@translate}</a>
     118        / <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a>
    102119      </p>
    103120    </fieldset>
Note: See TracChangeset for help on using the changeset viewer.