Changeset 1227 in main


Ignore:
Timestamp:
06/15/12 08:29:38 (7 years ago)
Author:
zali
Message:

Asynchronous search : update link to search and create pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/media/js/async_search.js

    r1219 r1227  
    1111        $(link).append(span_link); 
    1212    }); 
     13     
    1314    /*var searchBox=$(res_div).parent()[0]; 
    1415    var searchBox_class = $(searchBox).attr("class"); 
     
    1718    if($(res_div).attr("navigate")=="true"){ 
    1819        init(); 
     20    } 
     21     
     22    //update link to search and create pages 
     23    var req_type = $("#search_id_type").val(); 
     24    var req_q = $("#search_id_q").val(); 
     25    if (req_q==""){ 
     26        req_q="*"; 
     27    } 
     28    var search_link = $("#DisplayBox").find("a[href^='/search']")[0]; 
     29    $(search_link).attr("href","/search/?type="+req_type+"&q="+req_q); 
     30    if( req_type!="User"){ 
     31        var create_link = $("#DisplayBox").find("a[href^='/object/create']")[0]; 
     32        $(create_link).attr("href","/object/create/?type="+req_type); 
    1933    } 
    2034} 
Note: See TracChangeset for help on using the changeset viewer.