From: Olivier Lamy Date: Tue, 18 Sep 2012 08:58:57 +0000 (+0000) Subject: add a default cron expression to ease remote repo creation X-Git-Tag: archiva-1.4-M3~167 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26302816d31ca57162159429bbd13489391f310d;p=archiva.git add a default cron expression to ease remote repo creation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1387060 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index 07b3a05d6..068200288 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -978,7 +978,9 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery type: "GET", dataType: 'json', success: function(data) { - var viewModel = new RemoteRepositoryViewModel(new RemoteRepository(),false,remoteRepositoriesViewModel); + var remoteRepo=new RemoteRepository(); + remoteRepo.cronExpression("0 0 08 ? * SUN"); + var viewModel = new RemoteRepositoryViewModel(remoteRepo,false,remoteRepositoriesViewModel); viewModel.networkProxies(mapNetworkProxies(data)); ko.applyBindings(viewModel,$("#main-content" ).find("#remote-repository-edit").get(0)); activateRemoteRepositoryFormValidation();