mirror of https://github.com/apache/archiva.git
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:
parent
3b8ccd6132
commit
fbb1cf622c
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue