diff options
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({ | 
