Input field is active after new item created
This commit is contained in:
18
resources/assets/js/plugins/functions.js
vendored
18
resources/assets/js/plugins/functions.js
vendored
@ -15,14 +15,12 @@ function getQueryVariable(variable) {
|
||||
return(false);
|
||||
}
|
||||
|
||||
function promiseTimeout(time) {
|
||||
return new Promise(function(resolve,reject) {
|
||||
setTimeout(function(){
|
||||
resolve(time);
|
||||
}, time);
|
||||
});
|
||||
};
|
||||
//This function wraps setTimeout function in a promise in order to display dom manipulations on root components asynchronously & fast
|
||||
const setPromiseTimeout = time =>
|
||||
new Promise(resolve =>
|
||||
setTimeout(() =>
|
||||
resolve(time)
|
||||
, time)
|
||||
);
|
||||
|
||||
|
||||
|
||||
export {getQueryVariable, promiseTimeout}
|
||||
export {getQueryVariable, setPromiseTimeout}
|
||||
|
Reference in New Issue
Block a user