|
|
@ -509,14 +509,11 @@ function init_hotkey_actions() {
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
notify_progress("Loading, please wait...");
|
|
|
|
|
|
|
|
|
|
|
|
const value = getInitParam("cdm_expanded") ? "false" : "true";
|
|
|
|
const value = getInitParam("cdm_expanded") ? "false" : "true";
|
|
|
|
const query = "?op=rpc&method=setpref&key=CDM_EXPANDED&value=" + value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
new Ajax.Request("backend.php", {
|
|
|
|
xhrPost("backend.php", { op: "rpc", method: "setpref", key: "CDM_EXPANDED", value: value }, () => {
|
|
|
|
parameters: query,
|
|
|
|
|
|
|
|
onComplete: function(transport) {
|
|
|
|
|
|
|
|
setInitParam("cdm_expanded", !getInitParam("cdm_expanded"));
|
|
|
|
setInitParam("cdm_expanded", !getInitParam("cdm_expanded"));
|
|
|
|
viewCurrentFeed();
|
|
|
|
viewCurrentFeed();
|
|
|
|
} });
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|