OrderScreen complete
This commit is contained in:
@@ -45,8 +45,6 @@ const ajax = (endpoint: string, data: any, method = 'POST', successFunction: Fun
|
||||
beforeSend: beforeFunction
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
For the flow of the app, synchronous is commonly preferred
|
||||
though trying to keep its usage as low as possible.
|
||||
@@ -229,5 +227,13 @@ function* newestId(){
|
||||
}
|
||||
}
|
||||
|
||||
const loadTemplate = (templateSelector: string) => {
|
||||
const content = $(templateSelector)
|
||||
.clone()
|
||||
.removeAttr('id')
|
||||
.prop('content')
|
||||
return $(content)
|
||||
}
|
||||
|
||||
|
||||
$(() => ajax('/ajax/languageVars', null, 'GET', setupCore, null, null))
|
||||
Reference in New Issue
Block a user