]> source.dussan.org Git - nextcloud-server.git/commitdiff
setbackgroundjobsmode.php got lost somewhere - switched call to use the perferred...
authorMichael Gapczynski <mtgap@owncloud.com>
Mon, 27 Aug 2012 02:05:34 +0000 (22:05 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Mon, 27 Aug 2012 02:05:34 +0000 (22:05 -0400)
settings/js/admin.js

index 409594a4b94698840f70afd56f382defe245cdf5..57a67b54998add335d578f5ed771fa1e9da39265 100644 (file)
@@ -7,7 +7,10 @@ $(document).ready(function(){
 
        $('#backgroundjobs input').change(function(){
                if($(this).attr('checked')){
-                       $.post(OC.filePath('settings','ajax','setbackgroundjobsmode.php'), { mode: $(this).val() });
+                       var mode = $(this).val();
+                       if (mode == 'ajax' || mode == 'webcron' || mode == 'cron') {
+                               OC.AppConfig.setValue('core', 'backgroundjobs_mode', mode);
+                       }
                }
        });
 });
\ No newline at end of file