|
@@ -57,7 +57,6 @@ function KeyWordDialog(type,clickLi){
|
|
|
KeyWordDialog.AppendNode(dialogObj);
|
|
|
});
|
|
|
dialogObj.find(".submit").click(function(){
|
|
|
- alert(type);
|
|
|
commonAjaxReq(thisClass,type);
|
|
|
});
|
|
|
if(dialogObj.find(".keyWordGroup").length == 0){
|
|
@@ -473,9 +472,12 @@ $(function(){
|
|
|
keys[i] = keys[i].replace(/\+/g," ");
|
|
|
KeyWordDialog.AppendNode($("#"+type+"-keyword"),keys[i]);
|
|
|
}
|
|
|
- $("#"+type+"-content li:first").append('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
if(!searchnameIsExsit){
|
|
|
+ $("#"+type+"-content li:first .com-last").remove();
|
|
|
+ $("#"+type+"-content li:first").html('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
commonAjaxReq($("#tender-keyword"),type);
|
|
|
+ }else{
|
|
|
+ $("#"+type+"-content li:first").append('<div class="com-last">'+keys.join(";")+'</div>');
|
|
|
}
|
|
|
}
|
|
|
var setScope = function(type,scope){
|
|
@@ -503,7 +505,7 @@ $(function(){
|
|
|
$("body").append($("#tender-keyword").clone().removeAttr("id").attr("id","bid-keyword"))
|
|
|
.append($("#tender-scope").clone().removeAttr("id").attr("id","bid-scope"));
|
|
|
if(typeof(msgset.tender) != "undefined"){
|
|
|
- //setKeyWord("tender",msgset.tender.a_key);
|
|
|
+ setKeyWord("tender",msgset.tender.a_key,false);
|
|
|
setScope("tender",msgset.tender.s_scope);
|
|
|
if(msgset.tender.i_switchstatus){
|
|
|
turnOn($("#tender-on-off"));
|
|
@@ -514,7 +516,7 @@ $(function(){
|
|
|
}
|
|
|
}
|
|
|
if(typeof(msgset.bid) != "undefined"){
|
|
|
- //setKeyWord("bid",msgset.bid.a_key);
|
|
|
+ setKeyWord("bid",msgset.bid.a_key,false);
|
|
|
setScope("bid",msgset.bid.s_scope);
|
|
|
if(msgset.bid.i_switchstatus){
|
|
|
turnOn($("#bid-on-off"));
|
|
@@ -601,17 +603,16 @@ $(function(){
|
|
|
if(!searchnameIsExsit){
|
|
|
keywordes.push(searchname);
|
|
|
}
|
|
|
- setKeyWord(s_type,keywordes,searchnameIsExsit);
|
|
|
}else{
|
|
|
keywordes.push(searchname)
|
|
|
- setKeyWord(s_type,keywordes,false);
|
|
|
}
|
|
|
- turnOn($("#"+s_type +"-on-off"));
|
|
|
+
|
|
|
}else{
|
|
|
- keywordes.push(searchname)
|
|
|
- setKeyWord(s_type,keywordes,false);
|
|
|
- turnOn($("#"+s_type +"-on-off"));
|
|
|
+ keywordes.push(searchname);
|
|
|
+ }
|
|
|
+ setKeyWord(s_type,keywordes,searchnameIsExsit);
|
|
|
+ if(!$("#"+s_type +"-on-off").hasClass("open")){
|
|
|
+ $("#"+s_type+"-on-off").click();
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
});
|