aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/views/default
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-01 16:54:24 -0400
committercash <cash.costello@gmail.com>2011-10-01 16:54:24 -0400
commitbc292c96ac6b118bd7a99509fce1c11bb232aeb2 (patch)
tree0afc4522e91621f293df55250b77875ea3aecbb1 /mod/embed/views/default
parent418078a8d4c157c1c88d196d3b24ff0f0893b764 (diff)
downloadelgg-bc292c96ac6b118bd7a99509fce1c11bb232aeb2.tar.gz
elgg-bc292c96ac6b118bd7a99509fce1c11bb232aeb2.tar.bz2
fixed the forwarding of an embed upload form
Diffstat (limited to 'mod/embed/views/default')
-rw-r--r--mod/embed/views/default/js/embed/embed.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php
index 37246ee8a..6d4e2e4ea 100644
--- a/mod/embed/views/default/js/embed/embed.php
+++ b/mod/embed/views/default/js/embed/embed.php
@@ -79,9 +79,8 @@ elgg.embed.submit = function(event) {
elgg.system_message(response.system_messages.success);
}
if (response.status >= 0) {
- // @todo - really this should forward to what the registered defined
- // For example, forward to images tab if an image was uploaded
- var url = elgg.config.wwwroot + 'embed/embed';
+ var forward = $('input[name=embed_forward]').val();
+ var url = elgg.normalize_url('embed/tab/' + forward);
$('.embed-wrapper').parent().load(url);
}
}