diff options
Diffstat (limited to 'functions.js')
-rw-r--r-- | functions.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/functions.js b/functions.js index 25a19908b..b634974ab 100644 --- a/functions.js +++ b/functions.js @@ -12,6 +12,14 @@ function param_unescape(arg) { return unescape(arg); } +function delay(gap) { + var then,now; + then=new Date().getTime(); + now=then; + while((now-then)<gap) { + now=new Date().getTime(); + } +} function notify(msg) { @@ -27,4 +35,8 @@ function notify(msg) { } +function printLockingError() { + notify("Please wait until operation finishes"); +} + |