]> source.dussan.org Git - archiva.git/commitdiff
add a default cron expression to ease remote repo creation
authorOlivier Lamy <olamy@apache.org>
Tue, 18 Sep 2012 08:58:57 +0000 (08:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 18 Sep 2012 08:58:57 +0000 (08:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1387060 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js

index 07b3a05d645c722ad4a05b4fb68db282e48caa63..068200288b475a09b91dc14cfb5ccf7a607772ba 100644 (file)
@@ -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();