diff options
author | saksham1115 <saksham115@gmail.com> | 2016-06-14 15:27:11 +0000 |
---|---|---|
committer | saksham1115 <saksham115@gmail.com> | 2016-07-19 17:29:09 +0000 |
commit | 92497b7af6434d2358fd0ec52a6f6b2127ce0ae5 (patch) | |
tree | 7d11edddb24c9e9fa65a4cbec1ffa48402c131ee | |
parent | 7cf96b8e6df332461d1edb79a80ec15854bdd5af (diff) | |
download | mediagoblin-92497b7af6434d2358fd0ec52a6f6b2127ce0ae5.tar.lz mediagoblin-92497b7af6434d2358fd0ec52a6f6b2127ce0ae5.tar.xz mediagoblin-92497b7af6434d2358fd0ec52a6f6b2127ce0ae5.zip |
Working for firefox
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/custom_subtitles.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/custom_subtitles.html b/mediagoblin/templates/mediagoblin/user_pages/custom_subtitles.html index 6730ab92..d484d1a2 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/custom_subtitles.html +++ b/mediagoblin/templates/mediagoblin/user_pages/custom_subtitles.html @@ -20,15 +20,18 @@ #} -<script> -$(document).ready(function() { - $(".loadSubtitle").load("{{ path }}"); -}); -</script> {% extends "mediagoblin/base.html" %} {% block mediagoblin_content %} <p>{{ path }}</p> -<textarea id="loadSubtitle" style="width:512px;height:256px"></textarea> +<textarea id="test" style="width:100%;height:600px"></textarea> +<script> +var xmlhttp, text; +xmlhttp = new XMLHttpRequest(); +xmlhttp.open('GET', '{{ path }}', false); +xmlhttp.send(); +text = xmlhttp.responseText; +document.getElementById('test').value = text; +</script> {% endblock %}
\ No newline at end of file |