use select2 here too

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1425786 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-25 23:13:38 +00:00
parent 3b8ccd6132
commit fbb1cf622c
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ define("archiva.artifacts-management",["jquery","i18n","utils","jquery.tmpl","kn
var artifactUploadViewModel=new ArtifactUploadViewModel(data);
ko.applyBindings(artifactUploadViewModel,mainContent.find("#file-upload-main" ).get(0));
var fileUpload=$("#main-content" ).find("#fileupload");
$("#repositoryId" ).select2();
var validator = fileUpload.validate({
showErrors: function(validator, errorMap, errorList) {
customShowError("#main-content #fileupload",validator,errorMap,errorMap);

View File

@ -1096,6 +1096,7 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
artifactDetailViewModel.versions=ko.observableArray( mapVersionsList(data));
ko.applyBindings(artifactDetailViewModel,mainContent.find("#browse_artifact").get(0));
ko.applyBindings(artifactDetailViewModel,mainContent.find("#browse_breadcrumb").get(0));
}
});
}