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
This commit is contained in:
Olivier Lamy 2012-09-18 08:58:57 +00:00
parent d0220c13ad
commit 26302816d3
1 changed files with 3 additions and 1 deletions

View File

@ -978,7 +978,9 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
type: "GET", type: "GET",
dataType: 'json', dataType: 'json',
success: function(data) { 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)); viewModel.networkProxies(mapNetworkProxies(data));
ko.applyBindings(viewModel,$("#main-content" ).find("#remote-repository-edit").get(0)); ko.applyBindings(viewModel,$("#main-content" ).find("#remote-repository-edit").get(0));
activateRemoteRepositoryFormValidation(); activateRemoteRepositoryFormValidation();