Project

General

Profile

Revision 10539a5e

ID10539a5e6d7fb1cda7c1668ba92b7b4b5ae03142
Parent 7f26a756
Child 04e15401

Added by Francois POIROTTE about 13 years ago

Si app_path vaut juste "/", on aura une erreur.

On évite ça en strippant "/" par la droite de app_path,
et en s'assurant que toutes les URL construites à partir
de app_path commence par un "/".

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@7084 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/public/js/tree.js
27 27

  
28 28
        this.tree = new GroupTree({
29 29
            parent: this.container,
30
            url: app_path + 'get_groups',
30
            url: app_path + '/get_groups',
31 31
            itemName: "item",
32 32
            groupsonly: true,
33 33
            onItemClick: this.itemSelected.bind(this),

Also available in: Unified diff