diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-01-16 22:20:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2014-01-16 22:20:15 +0100 |
commit | b147b21af0f78fc76c170589badbd8407c92dfd9 (patch) | |
tree | 98325dc072d62c5b1396aed03bbaada76b8c0651 /ishtar_common/static/js | |
parent | 2c9c125831cd3b91fe9c9899d6a4246ed9962e60 (diff) | |
download | Ishtar-b147b21af0f78fc76c170589badbd8407c92dfd9.tar.bz2 Ishtar-b147b21af0f78fc76c170589badbd8407c92dfd9.zip |
Display of record carts from the shortcut menu (refs #1602) - change record cart links to a more explicit image
Diffstat (limited to 'ishtar_common/static/js')
-rw-r--r-- | ishtar_common/static/js/ishtar.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index b4a079ef8..0a15bfc23 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -105,6 +105,15 @@ function load_window(url, speed, on_success){ }); } +function load_current_window(url, model_name){ + var id = $("#current_" + model_name).val(); + if (!id) return; + url = url.split('/'); + url[url.length - 1] = id; + url.push(''); + return load_window(url.join('/')); +} + function load_url(url){ $("#progress").show(); $.ajax({ |