*/
import * as Ajax from "./Ajax";
-import { AjaxCallbackObject, RequestOptions, ResponseData } from "./Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, ResponseData } from "./Ajax/Data";
class BackgroundQueue implements AjaxCallbackObject {
private _invocations = 0;
}
}
- _ajaxSetup(): RequestOptions {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
url: this._url,
ignoreError: true,
*/
import * as Ajax from "../../Ajax";
-import { AjaxCallbackObject } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup } from "../../Ajax/Data";
class UiArticleMarkAllAsRead implements AjaxCallbackObject {
constructor() {
Ajax.api(this);
}
- _ajaxSuccess() {
+ _ajaxSuccess(): void {
/* remove obsolete badges */
// main menu
const badge = document.querySelector(".mainMenu .active .badge");
document.querySelectorAll(".articleList .newMessageBadge").forEach((el) => el.remove());
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
actionName: "markAllAsRead",
import * as Ajax from "../../Ajax";
-import { AjaxCallbackObject, DatabaseObjectActionResponse } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, DatabaseObjectActionResponse } from "../../Ajax/Data";
import { DialogCallbackObject } from "../Dialog/Data";
import DomUtil from "../../Dom/Util";
import * as Language from "../../Language";
}
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
actionName: "search",
import * as Environment from "../Environment";
import * as EventHandler from "../Event/Handler";
import UiDropdownSimple from "./Dropdown/Simple";
+import { CallbackSetup } from "../Ajax/Data";
let _activeDialog: string | null = null;
let _callbackFocus: (event: FocusEvent) => void;
return id.toString();
},
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {};
},
};
*/
import * as Ajax from "../../Ajax";
-import { AjaxCallbackObject, DatabaseObjectActionResponse } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, DatabaseObjectActionResponse } from "../../Ajax/Data";
import * as Core from "../../Core";
import DomChangeListener from "../../Dom/Change/Listener";
import * as Language from "../../Language";
Core.triggerEvent(this.target, "change");
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
url: "index.php?ajax-file-delete/&t=" + window.SECURITY_TOKEN,
};
import * as Ajax from "../../Ajax";
-import { AjaxCallbackObject, DatabaseObjectActionResponse } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, DatabaseObjectActionResponse } from "../../Ajax/Data";
import { DialogCallbackObject } from "../Dialog/Data";
import DomUtil from "../../Dom/Util";
import * as Language from "../../Language";
}
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
actionName: "search",
return data;
}
- _ajaxSuccess(data) {
+ _ajaxSuccess(data): void {
this.callbackSuccess(data);
}
}
import * as Core from "../../Core";
import DomUtil from "../../Dom/Util";
import UiDropdownSimple from "../Dropdown/Simple";
-import { DatabaseObjectActionPayload, DatabaseObjectActionResponse } from "../../Ajax/Data";
+import { CallbackSetup, DatabaseObjectActionPayload, DatabaseObjectActionResponse } from "../../Ajax/Data";
import AjaxRequest from "../../Ajax/Request";
import { CallbackDropdownInit, CallbackSelect, SearchInputOptions } from "./Data";
return listItem;
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: this.ajaxPayload,
};
import * as Core from "../Core";
import {
AjaxCallbackObject,
+ CallbackSetup,
DatabaseObjectActionPayload,
DatabaseObjectActionResponse,
- RequestPayload,
} from "../Ajax/Data";
import UiDropdownSimple from "./Dropdown/Simple";
});
}
- _ajaxSetup(): RequestPayload {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: this.ajaxPayload,
};
*/
import * as Ajax from "../../Ajax";
-import { AjaxCallbackObject } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup } from "../../Ajax/Data";
import * as Core from "../../Core";
import { DialogCallbackObject, DialogSettings } from "../Dialog/Data";
import DomUtil from "../../Dom/Util";
});
}
- _ajaxSuccess(data) {
+ _ajaxSuccess(data): void {
let button: HTMLElement;
switch (data.actionName) {
case "ban":
UiNotification.show();
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
className: "wcf\\data\\user\\UserAction",
import DomUtil from "../../Dom/Util";
import UiDialog from "../Dialog";
import UiPagination from "../Pagination";
-import { AjaxCallbackObject, DatabaseObjectActionResponse, RequestOptions } from "../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, DatabaseObjectActionResponse } from "../../Ajax/Data";
import { DialogCallbackObject, DialogData, DialogSettings } from "../Dialog/Data";
/**
this.showPage();
}
- _ajaxSetup(): RequestOptions {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
actionName: "getGroupedUserList",
*/
import * as Ajax from "../../../Ajax";
-import { AjaxCallbackObject, DatabaseObjectActionResponse } from "../../../Ajax/Data";
+import { AjaxCallbackObject, CallbackSetup, DatabaseObjectActionResponse } from "../../../Ajax/Data";
import { DialogCallbackObject, DialogData } from "../../Dialog/Data";
import DomChangeListener from "../../../Dom/Change/Listener";
import UiDialog from "../../Dialog";
this.showPage();
}
- _ajaxSetup() {
+ _ajaxSetup(): ReturnType<CallbackSetup> {
return {
data: {
actionName: "getGroupedUserTrophyList",