mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-726_delete-candidate
- change : thesaurus pool notifications is 10s - fix : thesaurus / delete term is ok #time 1h
This commit is contained in:
@@ -1834,7 +1834,7 @@ class ThesaurusController extends Controller
|
|||||||
|
|
||||||
$this->renumerate($newte, $ct->getAttribute("id") . "." . $teid, $chgids);
|
$this->renumerate($newte, $ct->getAttribute("id") . "." . $teid, $chgids);
|
||||||
|
|
||||||
$databox->saveThesaurus($domth);
|
$databox->saveCterms($domct);
|
||||||
|
|
||||||
$this->dispatch(
|
$this->dispatch(
|
||||||
ThesaurusEvents::CONCEPT_TRASHED,
|
ThesaurusEvents::CONCEPT_TRASHED,
|
||||||
@@ -1843,7 +1843,7 @@ class ThesaurusController extends Controller
|
|||||||
|
|
||||||
$thnode_parent->removeChild($thnode);
|
$thnode_parent->removeChild($thnode);
|
||||||
|
|
||||||
$databox->saveCterms($domct);
|
$databox->saveThesaurus($domth);
|
||||||
|
|
||||||
$r = $refresh_list->appendChild($ret->createElement("refresh"));
|
$r = $refresh_list->appendChild($ret->createElement("refresh"));
|
||||||
$r->setAttribute("id", $pid);
|
$r->setAttribute("id", $pid);
|
||||||
|
@@ -131,11 +131,7 @@
|
|||||||
alert("{{ 'phraseanet::erreur: Votre session est fermee, veuillez vous re-authentifier' | trans }}");
|
alert("{{ 'phraseanet::erreur: Votre session est fermee, veuillez vous re-authentifier' | trans }}");
|
||||||
self.location.replace(self.location.href);
|
self.location.replace(self.location.href);
|
||||||
}
|
}
|
||||||
//if(manageSession(data))
|
window.setTimeout("pollNotifications();", 10000);
|
||||||
var t = 5000; // 120000;
|
|
||||||
if(data.apps && parseInt(data.apps)>1)
|
|
||||||
t = Math.round((Math.sqrt(parseInt(data.apps)-1) * 1.3 * 120000));
|
|
||||||
window.setTimeout("pollNotifications();", t);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1022,6 +1018,7 @@
|
|||||||
|
|
||||||
if(confirm("{{ 'thesaurus:: deplacer le terme dans la corbeille ?' | trans | e('js') }}"+"\n\n"+fullpath+"\n\n"))
|
if(confirm("{{ 'thesaurus:: deplacer le terme dans la corbeille ?' | trans | e('js') }}"+"\n\n"+fullpath+"\n\n"))
|
||||||
{
|
{
|
||||||
|
console.log(url);
|
||||||
// xmlhttp/delts.x.php?bid=15&id=T1.629&debug=1
|
// xmlhttp/delts.x.php?bid=15&id=T1.629&debug=1
|
||||||
// alert(url+"?"+parms);
|
// alert(url+"?"+parms);
|
||||||
ret = loadXMLDoc(url, parms, true);
|
ret = loadXMLDoc(url, parms, true);
|
||||||
|
Reference in New Issue
Block a user