Dotclear


Ignore:
Timestamp:
02/18/18 18:16:29 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

use strict and no more linter warnings/errors as far as possible, switch from inline js to separate loaded file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • themes/ductile/_prepend.php

    r3531 r3709  
    3737<script type="text/javascript"> 
    3838$(function() { 
    39      $("#stickerslist").sortable({'cursor':'move'}); 
    40      $("#stickerslist tr").hover(function () { 
     39     $('#stickerslist').sortable({'cursor':'move'}); 
     40     $('#stickerslist tr').hover(function () { 
    4141          $(this).css({'cursor':'move'}); 
    4242     }, function () { 
     
    4545     $('#theme_config').submit(function() { 
    4646          var order=[]; 
    47           $("#stickerslist tr td input.position").each(function() { 
     47          $('#stickerslist tr td input.position').each(function() { 
    4848               order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1')); 
    4949          }); 
    50           $("input[name=ds_order]")[0].value = order.join(','); 
     50          $('input[name=ds_order]')[0].value = order.join(','); 
    5151          return true; 
    5252     }); 
    53      $("#stickerslist tr td input.position").hide(); 
    54      $("#stickerslist tr td.handle").addClass('handler'); 
     53     $('#stickerslist tr td input.position').hide(); 
     54     $('#stickerslist tr td.handle').addClass('handler'); 
    5555}); 
    5656</script> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map