diff options
author | Thomas BrĂ¼derli | 2007-07-02 14:24:27 +0000 |
---|---|---|
committer | Thomas BrĂ¼derli | 2007-07-02 14:24:27 +0000 |
commit | 561492c367a3fb054891305eb3cd27f613c6ee7b (patch) | |
tree | 5e1167f62e26ed4bb0cda403ece1950101338343 /itjs | |
parent | 38351f0b8476b39fc2762ebf081cddefd411ddf8 (diff) | |
download | itools-561492c367a3fb054891305eb3cd27f613c6ee7b.tar.gz itools-561492c367a3fb054891305eb3cd27f613c6ee7b.tar.bz2 itools-561492c367a3fb054891305eb3cd27f613c6ee7b.zip |
Include now() to it.js
Diffstat (limited to 'itjs')
-rw-r--r-- | itjs/it.js | 8 | ||||
-rw-r--r-- | itjs/state.js | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -158,6 +158,14 @@ function it_set(dst, src) } /** + * Return the current timestamp + */ +function it_now() +{ + return new Date().getTime(); +} + +/** * Encodes arbitrary string for use in an url * @param str string to be encoded */ diff --git a/itjs/state.js b/itjs/state.js index 04f8acf..9521093 100644 --- a/itjs/state.js +++ b/itjs/state.js @@ -49,7 +49,7 @@ new_history_entry: function(p) if (!this.it_iframe && !(this.it_iframe = document.getElementById('it_state'))) ED('it_state::new_history_entry(): it_state object not found!'); - this.it_iframe.src = "/itjs/state.html?t="+now(); + this.it_iframe.src = "/itjs/state.html?t="+it_now(); this.it_history_field = null; }, |