Пример #1
0
 function successfulAddonUpdate() {
     successMessage();
     checkedOnLoad = $('#selectAddonsForm input:checked');
     uncheckedOnLoad = $('#selectAddonsForm input:not(:checked)');
     if($osf.isSafari()) {
                 //Safari can't update jquery style change before reloading. So delay is applied here
                 setTimeout(function(){window.location.reload();}, 100);
     } else {
                 window.location.reload();
     }
 }
Пример #2
0
        ).done(function() {
            $commentMsg.text('Successfully updated settings.');
            $commentMsg.addClass('text-success');
            if($osf.isSafari()){
                //Safari can't update jquery style change before reloading. So delay is applied here
                setTimeout(function(){window.location.reload();}, 100);
            } else {
                window.location.reload();
            }

        }).fail(function() {