X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fjobterms.php;h=4cab3aae2b0b6d7070e040cff38102190f6aab60;hb=d82359a556779137f8a90d0312b3098a2db6f482;hp=ae5c758e454072e881ac310cee89dfe1fc2cda03;hpb=020a95fa78dc544b3064739d409026a0056d98f4;p=platal.git diff --git a/classes/jobterms.php b/classes/jobterms.php index ae5c758..4cab3aa 100644 --- a/classes/jobterms.php +++ b/classes/jobterms.php @@ -94,7 +94,7 @@ class JobTerms { * subbranches, keeping only the one containing this text in its title or in the title of one of * its subbranches. */ - static public function ajaxGetBranch(&$page, $filter = self::ALL) { + static public function ajaxGetBranch($page, $filter = self::ALL) { pl_content_headers('application/json'); $page->changeTpl('include/jobterms.branch.tpl', NO_SKIN); $subTerms = self::getSubTerms(Env::v('jtid'), $filter, Env::v('text_filter')); @@ -117,9 +117,9 @@ class JobTerms { return '$("'.addslashes($domElement).'").jstree({ "core" : {"strings":{"loading":"Chargement ..."}}, "plugins" : ["themes","json_data"], - "themes" : { "url" : platal_baseurl + "css/jstree.css" }, + "themes" : { "url" : $.plURL("css/jstree.css") }, "json_data" : { "ajax" : { - "url" : platal_baseurl + "'.addslashes($platalpage).'", + "url" : $.plURL("'.addslashes($platalpage).'"), "data" : function(nod) { var jtid = 0; if (nod != -1) {