Dotclear


Ignore:
Timestamp:
02/18/18 18:16:29 (8 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

Location:
plugins/userPref
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/userPref/index.php

    r3703 r3709  
    9797<head> 
    9898  <title>user:preferences</title> 
    99   <?php echo dcPage::jsPageTabs($part); ?> 
    100     <script type="text/javascript"> 
    101     $(function() { 
    102         $("#gp_submit,#lp_submit").hide(); 
    103         $('#part-local,#part-global').tabload(function() { 
    104             $('.multi-part.active select.navigation option:first').attr('selected',true); 
    105         }); 
    106         $("#gp_nav").change(function() { 
    107             window.location = $("#gp_nav option:selected").val(); 
    108         }); 
    109         $("#lp_nav").change(function() { 
    110             window.location = $("#lp_nav option:selected").val(); 
    111         }); 
    112     }); 
    113     </script> 
     99  <?php echo dcPage::jsPageTabs($part) . dcPage::jsLoad(dcPage::getPF('userPref/js/index.js')); ?> 
    114100</head> 
    115101 
Note: See TracChangeset for help on using the changeset viewer.

Sites map