Changeset 372 in main


Ignore:
Timestamp:
10/05/11 07:16:59 (8 years ago)
Author:
pcosquer
Message:

navigate: filter: handle User object correctly

File:
1 edited

Legend:

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

    r332 r372  
    246246        var uri_rx = /\/object\/(.*)\/navigate\/?$/; 
    247247        var result = uri_rx.exec(uri); 
    248         uri = "/ajax/navigate/" + (result[1])  + "/"; 
     248        if (result === null){ 
     249            uri_rx = /\/user\/(.*)\/navigate\/?$/; 
     250            result = uri_rx.exec(uri); 
     251            uri = "/ajax/navigate/User/" + (result[1]) + "/-/"; 
     252        } 
     253        else { 
     254            uri = "/ajax/navigate/" + (result[1])  + "/"; 
     255        } 
    249256        $("#FilterButton").button().click(function () { 
    250257            $.post(uri, 
Note: See TracChangeset for help on using the changeset viewer.