mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Removed not used code.
This commit is contained in:
parent
3e54d35fac
commit
32a54293a5
1 changed files with 0 additions and 25 deletions
|
@ -56,10 +56,6 @@ class AjaxUI {
|
|||
|
||||
private statePopped : boolean = false;
|
||||
|
||||
//Listener savers;
|
||||
private ajax_complete_listeners : Array<() => void> = [];
|
||||
private start_listeners : Array<() => void> = [];
|
||||
|
||||
public constructor()
|
||||
{
|
||||
//Make back in the browser go back in history
|
||||
|
@ -68,27 +64,6 @@ class AjaxUI {
|
|||
//$(document).ajaxComplete(this.onAjaxComplete.bind(this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a function, which will be executed every time, a ajax request was successful.
|
||||
* Should be used to register functions for elements in the #content div
|
||||
* @param {() => void} func The function which should be registered.
|
||||
*/
|
||||
public addAjaxCompleteAction(func : ()=>void)
|
||||
{
|
||||
this.ajax_complete_listeners.push(func);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a function, which will be called once, when start() is run.
|
||||
* Should be used to register functions for elements outside the #content div.
|
||||
* @param {() => void} func The function which should be registered.
|
||||
*/
|
||||
public addStartAction(func: ()=>void)
|
||||
{
|
||||
this.start_listeners.push(func);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Starts the ajax ui und execute handlers registered in addStartAction().
|
||||
* Should be called in a document.ready, after handlers are set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue