aboutsummaryrefslogtreecommitdiff
path: root/mod/embed/js
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 23:54:38 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-14 23:54:38 +0000
commit1e94b4e29b3d4989eff8d5344bf3415b3fb44b94 (patch)
treefe807ae882366a5f20a831c12ec88b6a8131a18b /mod/embed/js
parentcaf11e94744c49e1b1533b45f0a44d0aa97704df (diff)
downloadelgg-1e94b4e29b3d4989eff8d5344bf3415b3fb44b94.tar.gz
elgg-1e94b4e29b3d4989eff8d5344bf3415b3fb44b94.tar.bz2
Refs #3016: Removes inline javascript from embed, file, groups, messages, profile, thewire
git-svn-id: http://code.elgg.org/elgg/trunk@8711 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/embed/js')
-rw-r--r--mod/embed/js/embed.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/embed/js/embed.js b/mod/embed/js/embed.js
new file mode 100644
index 000000000..c29083af7
--- /dev/null
+++ b/mod/embed/js/embed.js
@@ -0,0 +1,10 @@
+$(function() {
+
+ // change for dropdown
+ $('#embed_upload').live('change', function() {
+ var upload_section = $(this).val();
+ var url = elgg.get_site_url() + 'embed/embed?active_section=upload&active_upload_section=' + upload_section;
+ $('#facebox .body .content').load(url);
+ });
+
+}); \ No newline at end of file