aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-01-29 15:17:45 +0000
committerOlivier Lamy <olamy@apache.org>2013-01-29 15:17:45 +0000
commit08e1200edbe2c79818d08835859438b720ac7eb7 (patch)
treea5b8a1a6300fac185767cbe772413bdd0d1d4098
parent809047b3d835d48638330f73e1eb89c9ca02998f (diff)
downloadarchiva-08e1200edbe2c79818d08835859438b720ac7eb7.tar.gz
archiva-08e1200edbe2c79818d08835859438b720ac7eb7.zip
fix selected repositories in search screen
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1439924 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
index 5c7175241..3e980792f 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
@@ -1894,6 +1894,7 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
this.resultViewModel=new ResultViewModel([]);
basicSearch=function(){
var queryTerm=this.searchRequest().queryTerms();
+ $.log("basicSearch:"+queryTerm);
if ($.trim(queryTerm).length<1){
var errorList=[{
message: $.i18n.prop("search.artifact.search.form.terms.empty"),
@@ -1909,8 +1910,9 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
self.selectedRepoIds=[];
mainContent.find("#search-basic-repositories" )
- .find(".chzn-choices li span").each(function(i,span){
- self.selectedRepoIds.push($(span).html());
+ .find(".select2-search-choice").each(function(i,span){
+ $.log("find .select2-search-choice");
+ self.selectedRepoIds.push($(span).find("div").html());
}
);
@@ -1940,8 +1942,8 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
self.selectedRepoIds=[];
mainContent.find("#search-basic-repositories" )
- .find(".chzn-choices li span").each(function(i,span){
- self.selectedRepoIds.push($(span).html());
+ .find(".select2-search-choice").each(function(i,span){
+ self.selectedRepoIds.push($(span).find("div").html());
}
);
@@ -2002,8 +2004,8 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","select2","knockout","kno
} else {
self.selectedRepoIds=[];
mainContent.find("#search-basic-repositories" )
- .find(".chzn-choices li span").each(function(i,span){
- self.selectedRepoIds.push($(span).html());
+ .find(".select2-search-choice").each(function(i,span){
+ self.selectedRepoIds.push($(span ).find("div").html());
}
);
}