Dotclear


Ignore:
Timestamp:
12/08/17 16:45:49 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Dotclear core update check is now done by async js (via services.php) - a forced check may still be done on <admin>/update.php page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_index.js

    r2929 r3613  
    8080          user_pref: 'dcx_quick_entry' 
    8181     }); 
     82 
     83     // check if core update available 
     84     var params = { 
     85          f: 'checkCoreUpdate', 
     86          xd_check: dotclear.nonce 
     87     }; 
     88     $.post('services.php',params,function(data) { 
     89          if ($('rsp[status=failed]',data).length > 0) { 
     90               // Silently fail as a forced checked my be done with admin update page 
     91          } else { 
     92               if ($('rsp>update',data).attr('check') == 1) { 
     93                    // Something has to be displayed 
     94                    xml = $('rsp>update',data).attr('ret'); 
     95                    $('#content h2').after(xml); 
     96               } 
     97          } 
     98     }); 
     99 
    82100}); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map