Working for firefox
This commit is contained in:
parent
7cf96b8e6d
commit
92497b7af6
@ -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 %}
|
Loading…
x
Reference in New Issue
Block a user