Changeset 1215 in main


Ignore:
Timestamp:
06/13/12 15:26:34 (7 years ago)
Author:
zali
Message:

Template navigate: the search is now performed asynchronously

Location:
trunk/openPLM
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/views/main.py

    r1210 r1215  
    21522152    return r2r("public.html", ctx, request) 
    21532153 
     2154def async_search(request, obj_type, obj_ref, obj_revi): 
     2155    """Perform search_request asynchronously""" 
     2156    obj,ctx = get_generic_data(request) 
     2157    ctx["navigate_bool"]=True 
     2158    return r2r("render_search.html",ctx,request) 
  • trunk/openPLM/templates/navigate.html

    r1015 r1215  
    1212    <script type="text/javascript" src="/media/js/raphael-min.js"></script> 
    1313    <script type="text/javascript" src="/media/js/navigate.js"></script> 
     14    <script type="text/javascript" src="/media/js/async_search.js"></script> 
    1415 
    1516    <script> 
  • trunk/openPLM/urls.py

    r1172 r1215  
    132132    (r'management/delete/$', delete_management), 
    133133    (r'navigate/$', navigate), 
     134    (r'navigate/perform_search/$', async_search), 
    134135    (r'(?:files/|doc-cad/)?archive/$', download_archive), 
    135136    (r'public/$', public), 
     
    151152    (r'password/$', change_user_password), 
    152153    (r'navigate/$', navigate, user_dict), 
     154    (r'navigate/perform_search/$', async_search, user_dict), 
    153155    (r'groups/$', display_groups), 
    154156) 
     
    160162    (r'objects/$', display_plmobjects), 
    161163    (r'navigate/$', navigate, group_dict), 
     164    (r'navigate/perform_search/$', async_search,group_dict), 
    162165    (r'users/$', display_users), 
    163166    (r'users/add/$', group_add_user), 
Note: See TracChangeset for help on using the changeset viewer.