From: Olivier Lamy Date: Tue, 18 Sep 2012 08:58:45 +0000 (+0000) Subject: add a default cron expression to ease managed repo creation X-Git-Tag: archiva-1.4-M3~168 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0220c13ad406a2c5dc1754ead2e75af7c700ef1;p=archiva.git add a default cron expression to ease managed repo creation git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1387059 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 92324d83f..07b3a05d6 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 @@ -959,7 +959,9 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery mainContent.find("#managed-repositories-pills").on('show', function (e) { var mainContent = $("#main-content"); if ($(e.target).attr("href")=="#managed-repository-edit") { - var viewModel = new ManagedRepositoryViewModel(new ManagedRepository(),false,managedRepositoriesViewModel); + var managedRepo=new ManagedRepository(); + managedRepo.cronExpression("0 0 * * * ?"); + var viewModel = new ManagedRepositoryViewModel(managedRepo,false,managedRepositoriesViewModel); ko.applyBindings(viewModel,mainContent.find("#managed-repository-edit").get(0)); activateManagedRepositoryFormValidation(); activatePopoverDoc();