this.managedRepositoriesViewModel = managedRepositoriesViewModel;
this.update = update;
var self = this;
- var currentManagedRepository = this.managedRepository;
save=function(){
var valid = $("#main-content #managed-repository-edit-form").valid();
if (valid==false) {
{
type: "POST",
contentType: 'application/json',
- data: "{\"managedRepository\": " + ko.toJSON(currentManagedRepository)+"}",
+ data: "{\"managedRepository\": " + ko.toJSON(self.managedRepository)+"}",
dataType: 'json',
success: function(data) {
//var repo = mapManagedRepository(data);
- //$.log("data:"+repo.name);
- self.managedRepositoriesViewModel.managedRepositories.push(currentManagedRepository);
+ //$.log("data:"+data.responseText);
+ self.managedRepositoriesViewModel.managedRepositories.push(self.managedRepository);
displaySuccessMessage($.i18n.prop('managedrepository.added'));
activateManagedRepositoriesGridTab();
},
<goal>test</goal>
</goals>
<configuration>
- <systemProperties>
- <property>
- <name>browser</name>
- <value>${selenium.browser}</value>
- </property>
- <property>
- <name>baseUrl</name>
- <value>${baseUrl}</value>
- </property>
- <property>
- <name>maxWaitTimeInMs</name>
- <value>${maxWaitTimeInMs}</value>
- </property>
- </systemProperties>
+ <systemPropertyVariables>
+ <browser>${selenium.browser}</browser>
+ <baseUrl>${baseUrl}</baseUrl>
+ <maxWaitTimeInMs>${maxWaitTimeInMs}</maxWaitTimeInMs>
+ </systemPropertyVariables>
</configuration>
</execution>
</executions>