diff options
author | friendica <info@friendica.com> | 2012-07-25 19:45:45 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-25 19:45:45 -0700 |
commit | 21b3dc9c27be50e73944eaec97001ad1279400f1 (patch) | |
tree | b006c49eb79663b3f35b69098cbec3b35618103d /js | |
parent | fc53a7a09ed16504ae88b064640c91882c34ef8b (diff) | |
download | volse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.tar.gz volse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.tar.bz2 volse-hubzilla-21b3dc9c27be50e73944eaec97001ad1279400f1.zip |
tie the main slider to ajax updates and buildCmd
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/js/main.js b/js/main.js index 1feb7446e..1454dd0b5 100644 --- a/js/main.js +++ b/js/main.js @@ -327,13 +327,19 @@ function updateConvItems(mode,data) { in_progress = true; - var udargs = ((page_load) ? '/load' : ''); - page_load = false; + var update_url; - var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); + if(typeof buildCmd == 'function') { + update_url = buildCmd(); + } + else { + var udargs = ((page_load) ? '/load' : ''); + update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0); + } $.get(update_url,function(data) { - var update_mode = ((page_load) ? 'replace' : 'update'); + var update_mode = ((page_load) ? 'replace' : 'update'); + page_load = false; in_progress = false; updateConvItems(update_mode,data); }); |