View Single Post
  #10  
Old 28.12.2020, 13:00
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,703
Default

Quote:
if (name == "Toggle AutoExpand") {
var interfaceName = "jd.controlling.linkcollector.LinkCollectorConfig";
var key = "PackageAutoExpanded";

var currentState = callAPI("config", "get", interfaceName, null, key);
var message = currentState ? "AutoExpand was disabled" : "AutoExpand was enabled";

callAPI("config", "set", interfaceName, null, key, !currentState);
alert(message);
}
so sollte das klappen
__________________
JD-Dev & Server-Admin
Reply With Quote