src/cm/templates/site/text_list.html
changeset 565 95a5c06c4008
parent 460 2fdb7d095d5c
child 631 150db5b6711d
equal deleted inserted replaced
564:dc415eb33a3f 565:95a5c06c4008
    88 
    88 
    89 <script type="text/javascript">
    89 <script type="text/javascript">
    90 <!--
    90 <!--
    91 function check_activate_apply() {
    91 function check_activate_apply() {
    92     if (($("input[name^=check-]:checked").length > 0) && ($("#bulk_actions").val() != -1)) {
    92     if (($("input[name^=check-]:checked").length > 0) && ($("#bulk_actions").val() != -1)) {
    93         $('#apply').removeAttr('disabled');
    93         $('#apply').prop('disabled',false);
    94     }
    94     }
    95     else {
    95     else {
    96         $('#apply').attr('disabled','disabled');
    96         $('#apply').prop('disabled',true);
    97     }   
    97     }   
    98 };
    98 };
    99 
    99 
   100 $(function() {
   100 $(function() {
   101     $("input[name^=check-]").click(function () {
   101     $("input[name^=check-]").click(function () {
   126                 <th class="check-column"><input type="checkbox" id="all_check" name="checkall"/>
   126                 <th class="check-column"><input type="checkbox" id="all_check" name="checkall"/>
   127                 <script type="text/javascript">
   127                 <script type="text/javascript">
   128                 <!--
   128                 <!--
   129                 $(function() {
   129                 $(function() {
   130                     $("#all_check").click(function () {
   130                     $("#all_check").click(function () {
   131                         checked = $("#all_check").attr('checked'); 
   131                         checked = $("#all_check").prop('checked'); 
   132                         $(".text_check").attr('checked', checked);
   132                         $(".text_check").prop('checked', checked);
   133                         check_activate_apply();                    
   133                         check_activate_apply();                    
   134                       });                     
   134                       });                     
   135                 }) ;
   135                 }) ;
   136                 -->
   136                 -->
   137                 </script>
   137                 </script>