Dotclear


Ignore:
Timestamp:
09/18/18 20:22:10 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use let and const rather than var (ES2015/ES6), use template string where is more efficient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/maintenance/js/dc.maintenance.js

    r3709 r3880  
    44$(function() { 
    55  $('.step-box').each(function() { 
    6     var code = $('input[name=code]', this).val(); 
     6    const code = $('input[name=code]', this).val(); 
    77 
    88    $('.step-submit', this).remove(); 
     
    1717 
    1818    function dcMaintenanceStep(box, code) { 
    19       var params = { 
     19      const params = { 
    2020        f: 'dcMaintenanceStep', 
    2121        xd_check: dotclear.nonce, 
     
    3434            $('rsp>step', data).attr('title') 
    3535          ); 
    36           var code = $('rsp>step', data).attr('code'); 
     36          const code = $('rsp>step', data).attr('code'); 
    3737          if (code > 0) { 
    3838            dcMaintenanceStep(box, code); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map