diff options
| author | ianb <devnull@localhost> | 2005-07-18 02:52:22 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-07-18 02:52:22 +0000 |
| commit | 7099e791e52183447c0a8c058455c4e4c6c755f3 (patch) | |
| tree | 0ac46058830d6e4910916b462f44c08ab7f9bfb9 /examples | |
| parent | 8bb8a37c76c8004b84a4561c8eefe64737b25051 (diff) | |
| download | paste-7099e791e52183447c0a8c058455c4e4c6c755f3.tar.gz | |
Javascript function for jumping
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/filebrowser/js-lib/common.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/filebrowser/js-lib/common.js b/examples/filebrowser/js-lib/common.js index 08ec63a..62410d7 100644 --- a/examples/filebrowser/js-lib/common.js +++ b/examples/filebrowser/js-lib/common.js @@ -1,3 +1,9 @@ +function jump(anchor) { + var dest_url = anchor.getAttribute('jumpurl'); + var name = window.prompt('Jump to what file?') + location.href = dest_url + '?name=' + escape(name); +} + Element.hidden = function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); |
