$(document).ready(function() { $('.content-wrapper [href="?m=administration&p=main"], .main [href="javascript:history.go(-1)"], .main [href="home.php?m=cron&p=cron"], .main a[href="home.php?m=cron&p=user_cron"]').addClass('btn btn-sm btn-primary'); $('.content-wrapper input[name="removeJob"]').removeClass('btn-primary').addClass('btn-danger'); $('.content-wrapper a[href="home.php?m=cron&p=user_cron"]').removeClass('btn-primary').addClass('btn-secondary').prepend(''); $('.content-wrapper .hundred td[colspan="6"]').attr('colspan',8); $('.content-wrapper th:last-child').attr('colspan', 2); }); $(window).load(function() { // check if cron is the updateserverstats cron $('.content-wrapper input[name="command"]').each(function() { if($(this).val().toLowerCase().indexOf('adminlte/dist/php/settings.php')>=0) { // wrap theme cron input into input-group $(this).wrap('\
\
\
Theme Cron
\
\
\ '); // colorize all fields $(this).closest('tr').find('.form-control').addClass('border-danger'); } }); // wrap scheduled jobs into separate card var doWrap = false; $('.main > *').each(function(index) { if($(this).is('h2')) { doWrap = true; $('.content .row > div').append('

'+$(this).text()+'

'); $(this).remove(); }else { if(doWrap) { $('.content .card-body:not(.main)').append($(this)); } } }); });