From 26302816d31ca57162159429bbd13489391f310d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 18 Sep 2012 08:58:57 +0000 Subject: [PATCH] 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 --- .../src/main/webapp/js/archiva/repositories.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();